summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/apbootstrap.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/9/pc/apbootstrap.s b/sys/src/9/pc/apbootstrap.s
index 5407530f0..14d115224 100644
--- a/sys/src/9/pc/apbootstrap.s
+++ b/sys/src/9/pc/apbootstrap.s
@@ -73,6 +73,11 @@ TEXT _ap32(SB), $0
MOVL DX, (PDO(0))(CX)
MOVL CX, CR3 /* load and flush the mmu */
+ MOVL CR4, AX
+ ANDL $~0x00000020, AX /* ~PAE */
+ ORL $0x00000010, AX /* PSE */
+ MOVL AX, CR4
+
MOVL CR0, DX
ORL $0x80010000, DX /* PG|WP */
ANDL $~0x6000000A, DX /* ~(CD|NW|TS|MP) */