mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-21 20:57:25 +00:00
no longer use hardcoded position for pml4
This commit is contained in:
parent
a16062dc7f
commit
705f733836
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ _start:
|
|||
push %eax
|
||||
|
||||
# zero out kernel page table
|
||||
movl $0x1000, %edi # pml4 located at 0x1000
|
||||
movl $kernel_pml4, %edi
|
||||
movl %edi, %cr3
|
||||
xorl %eax, %eax
|
||||
movl $4096, %ecx # zero 4096 pages
|
||||
|
|
Loading…
Add table
Reference in a new issue