Use 4Mbyte pages during boot
This commit is contained in:
parent
843eecfcd0
commit
9449646853
4 changed files with 15 additions and 1035 deletions
5
entry.S
5
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue