Files
Gists/kernel.c/kernel.s
2023-01-13 18:18:55 -04:00

22 lines
238 B
ArmAsm

.section .text
// Multiboot header
.align 4
.long 0x1BADB002
.long 0x00
.long -0x1BADB002
// Entry point
.globl start
start:
cli
mov $stack_top, %esp
call kmain
hlt
.section .bss
.comm stack_bottom, 8192, 4
stack_top: