From 8d8d6c7be31a4fe8aaff131ad72e271e14202b35 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Mon, 30 Aug 2010 06:48:48 -0400 Subject: [PATCH] we don't need CR0_WP --- vm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vm.c b/vm.c index ffdcab3..20afa28 100644 --- a/vm.c +++ b/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); }