summaryrefslogtreecommitdiff
path: root/entryother.S
diff options
context:
space:
mode:
Diffstat (limited to 'entryother.S')
-rw-r--r--entryother.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/entryother.S b/entryother.S
index 4f8e3ba..56651e6 100644
--- a/entryother.S
+++ b/entryother.S
@@ -50,6 +50,10 @@ start32:
movw %ax, %fs
movw %ax, %gs
+ # Turn on page size extension for 4Mbyte pages
+ movl %cr4, %eax
+ orl $(CR4_PSE), %eax
+ movl %eax, %cr4
# Use bootpgdir as our initial page table
movl (start-12), %eax
movl %eax, %cr3
@@ -58,7 +62,7 @@ start32:
orl $(CR0_PE|CR0_PG|CR0_WP), %eax
movl %eax, %cr0
- # Switch to the stack allocated by entryothers()
+ # Switch to the stack allocated by enterothers()
movl (start-4), %esp
# Call mpboot()
call *(start-8)