Files

16 lines
315 B
ArmAsm

global loader
align 8
loader:
KERNEL_STACK_SIZE equ 8192
mov esp, kernel_stack; + KERNEL_STACK_SIZE ; ont ESP to the start of the stack (end of memory area)
extern kmain
call kmain
;mov eax, 0xCAFEBABE
.loop:
jmp .loop
section .bss
resb KERNEL_STACK_SIZE ; reserve stack for kernel
kernel_stack: