mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
only the boot processor should set mb_info
This commit is contained in:
parent
fda002a9da
commit
2704dbfb1e
1 changed files with 3 additions and 3 deletions
|
@ -114,9 +114,6 @@ boot_pgt:
|
|||
SECTION .ktext
|
||||
align 4
|
||||
start64:
|
||||
; store pointer to the multiboot information
|
||||
mov [mb_info], QWORD rdx
|
||||
|
||||
; reset registers to kill any stale realmode selectors
|
||||
xor eax, eax
|
||||
mov ds, eax
|
||||
|
@ -134,6 +131,9 @@ start64:
|
|||
cmp eax, 0
|
||||
jne Lno_pml4_init
|
||||
|
||||
; store pointer to the multiboot information
|
||||
mov [mb_info], QWORD rdx
|
||||
|
||||
; relocate page tables
|
||||
mov rdi, boot_pml4
|
||||
mov rax, QWORD [rdi]
|
||||
|
|
Loading…
Add table
Reference in a new issue