we don't need CR0_WP

This commit is contained in:
Robert Morris 2010-08-30 06:48:48 -04:00
parent 5ab868fd90
commit 8d8d6c7be3

4
vm.c
View file

@ -375,9 +375,7 @@ vminit(void)
lcr3(PADDR(kpgdir)); lcr3(PADDR(kpgdir));
cr0 = rcr0(); cr0 = rcr0();
// cr0 |= CR0_PE|CR0_PG|CR0_AM|CR0_WP|CR0_NE|CR0_TS|CR0_EM|CR0_MP; cr0 |= CR0_PG;
// cr0 &= ~(CR0_TS|CR0_EM);
cr0 |= CR0_PG | CR0_WP;
lcr0(cr0); lcr0(cr0);
} }