summaryrefslogtreecommitdiff
path: root/entry.S
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-15 17:41:58 -0400
committerFrans Kaashoek <[email protected]>2011-08-15 17:41:58 -0400
commit944964685325aa63a59e5e84d8fd0ba5af45ec8c (patch)
treef25a414730f9d5576666a89ead43a47ae387f6d8 /entry.S
parent843eecfcd0c23f2b9466e5c3289c1819950ccb47 (diff)
downloadxv6-labs-944964685325aa63a59e5e84d8fd0ba5af45ec8c.tar.gz
xv6-labs-944964685325aa63a59e5e84d8fd0ba5af45ec8c.tar.bz2
xv6-labs-944964685325aa63a59e5e84d8fd0ba5af45ec8c.zip
Use 4Mbyte pages during boot
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.