this is working pretty well right now

This commit is contained in:
2026-04-16 15:47:33 -04:00
parent a84774e635
commit 51c553524f
11 changed files with 247 additions and 0 deletions

29
BUGS/boot.s Normal file
View File

@@ -0,0 +1,29 @@
; Multiboot header
ALIGNED_4K equ 1<<0
MEM_INFO equ 1<<1
FLAGS equ ALIGNED_4K | MEM_INFO
MAGIC equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)
section .multiboot
align 4
dd MAGIC
dd FLAGS
dd CHECKSUM
section .bss
align 16
stack_bottom:
resb 16384 ; 16 KiB for stack
stack_top:
section .text
global _start:function (_start.end - _start)
_start:
mov esp, stack_top
extern kernel_main
call kernel_main
cli
.hang: hlt
jmp .hang
_start.end: