c1ad0fc5/1/2026, 8:41:11 PM
~kernel/entry.asm
.asm
Assembly
(text/assembly)
bits 32

extern kmain

section .entry

; void start()
global _start
_start:
	mov esp, kernelStackStart
	call kmain

	.hang:
		cli
		hlt
		jmp .hang

align 16
kernelStackEnd:
	times 16384 db 0
kernelStackStart: