stos: init: Add kernel C entry

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 00:43:03 +00:00
parent d46ce89f83
commit 6f222ae96c
5 changed files with 56 additions and 2 deletions
+2
View File
@@ -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 */