stos: init: Add kernel C entry
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -8,12 +8,14 @@
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
.extern KiKernelEntry
|
||||
_start:
|
||||
cli /* Just in case */
|
||||
xor %rbp, %rbp /* Terminate callstack */
|
||||
|
||||
lea g_GDTR(%rip), %rdi
|
||||
call MdGdtLoad
|
||||
call KiKernelEntry
|
||||
|
||||
mfence /* Flush caches */
|
||||
1: cli /* Disable interrupts */
|
||||
|
||||
Reference in New Issue
Block a user