git-svn-id: https://spexeah.com:8443/svn/Asuro@145 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-05-20 18:25:38 +00:00
parent d53b41750a
commit 126ec01343
15 changed files with 136 additions and 44 deletions

View File

@ -81,11 +81,11 @@ _loader:
jmp ecx
kstart:
mov dword [BootPageDirectory], 0
invlpg [0]
mov dword [BootPageDirectory], 0
invlpg [0]
mov esp, KERNEL_STACK+KERNEL_STACKSIZE ;Create kernel stack
push eax ;Multiboot magic number
add ebx, KERNEL_VIRTUAL_BASE
add ebx, KERNEL_VIRTUAL_BASE
push ebx ;Multiboot info
call kmain ;Call kernel entrypoint
cli ;Clear interrupts