we don't need CR0_WP
This commit is contained in:
parent
5ab868fd90
commit
8d8d6c7be3
1 changed files with 1 additions and 3 deletions
4
vm.c
4
vm.c
|
@ -375,9 +375,7 @@ vminit(void)
|
|||
|
||||
lcr3(PADDR(kpgdir));
|
||||
cr0 = rcr0();
|
||||
// cr0 |= CR0_PE|CR0_PG|CR0_AM|CR0_WP|CR0_NE|CR0_TS|CR0_EM|CR0_MP;
|
||||
// cr0 &= ~(CR0_TS|CR0_EM);
|
||||
cr0 |= CR0_PG | CR0_WP;
|
||||
cr0 |= CR0_PG;
|
||||
lcr0(cr0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue