helos1/kernel/kmain.init.S

26 lines
268 B
ArmAsm
Raw Normal View History

2021-10-10 14:39:17 +08:00
format elf64
extrn kMain
public kMain_StackPosition
public kMain_Init
section '.bss' writable
kMain_StackPosition:
rq 1
section '.text' executable
; sysvx64call void kMain_Init()
kMain_Init:
mov rsp, [kMain_StackPosition]
call kMain
.hlt:
hlt
jmp .hlt