1
0
Fork 0
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:
Stefan Lankes 2017-05-20 14:00:12 +02:00
parent fda002a9da
commit 2704dbfb1e

View file

@ -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]