summaryrefslogtreecommitdiff
path: root/entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'entry.S')
-rw-r--r--entry.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/entry.S b/entry.S
index cd6a62b..46fcca6 100644
--- a/entry.S
+++ b/entry.S
@@ -39,6 +39,11 @@ multiboot_header:
# Multiboot entry point. Machine is mostly set up.
.globl multiboot_entry
multiboot_entry:
+ # Turn on page size extension for 4Mbyte pages
+ movl %cr4, %eax
+ orl $(CR4_PSE), %eax
+ movl %eax, %cr4
+ # Set page directory
movl $(V2P_WO(bootpgdir)), %eax
movl %eax, %cr3
# Turn on paging.