Revert to using flushtlb instead of invlpg
Somehow the usage of invlpg causes Minix to crash on Qemu. Reverting temporarily until we have a proper fix.
This commit is contained in:
parent
bc0a39238e
commit
8c9e62b299
1 changed files with 4 additions and 4 deletions
|
@ -333,8 +333,8 @@ PUBLIC void *vm_allocpage(phys_bytes *phys, int reason)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((r=sys_vmctl(SELF, VMCTL_I386_INVLPG, loc)) != OK) {
|
if((r=sys_vmctl(SELF, VMCTL_FLUSHTLB, 0)) != OK) {
|
||||||
panic("VMCTL_I386_INVLPG failed: %d", r);
|
panic("VMCTL_FLUSHTLB failed: %d", r);
|
||||||
}
|
}
|
||||||
|
|
||||||
level--;
|
level--;
|
||||||
|
@ -370,8 +370,8 @@ PUBLIC void vm_pagelock(void *vir, int lockflag)
|
||||||
panic("vm_lockpage: pt_writemap failed");
|
panic("vm_lockpage: pt_writemap failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
if((r=sys_vmctl(SELF, VMCTL_I386_INVLPG, m)) != OK) {
|
if((r=sys_vmctl(SELF, VMCTL_FLUSHTLB, 0)) != OK) {
|
||||||
panic("VMCTL_I386_INVLPG failed: %d", r);
|
panic("VMCTL_FLUSHTLB failed: %d", r);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue