Avoid "boot" in xv6
This commit is contained in:
parent
9449646853
commit
a4b213cf49
11 changed files with 43 additions and 51 deletions
10
entry.S
10
entry.S
|
@ -34,17 +34,17 @@ multiboot_header:
|
|||
.long multiboot_header
|
||||
.long edata
|
||||
.long end
|
||||
.long multiboot_entry
|
||||
.long entry
|
||||
|
||||
# Multiboot entry point. Machine is mostly set up.
|
||||
.globl multiboot_entry
|
||||
multiboot_entry:
|
||||
# Entering xv6 on boot processor. Machine is mostly set up.
|
||||
.globl entry
|
||||
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 $(V2P_WO(enterpgdir)), %eax
|
||||
movl %eax, %cr3
|
||||
# Turn on paging.
|
||||
movl %cr0, %eax
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue