diff options
| author | Frans Kaashoek <kaashoek@26-4-190.dynamic.csail.mit.edu> | 2011-08-15 17:41:58 -0400 |
|---|---|---|
| committer | Frans Kaashoek <kaashoek@26-4-190.dynamic.csail.mit.edu> | 2011-08-15 17:41:58 -0400 |
| commit | 944964685325aa63a59e5e84d8fd0ba5af45ec8c (patch) | |
| tree | f25a414730f9d5576666a89ead43a47ae387f6d8 /entry.S | |
| parent | 843eecfcd0c23f2b9466e5c3289c1819950ccb47 (diff) | |
| download | xv6-labs-2022-944964685325aa63a59e5e84d8fd0ba5af45ec8c.tar.xz xv6-labs-2022-944964685325aa63a59e5e84d8fd0ba5af45ec8c.zip | |
Use 4Mbyte pages during boot
Diffstat (limited to 'entry.S')
| -rw-r--r-- | entry.S | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |
