Initial commit

This commit is contained in:
Chris
2026-02-04 20:51:17 +01:00
commit ddac1a791e
132 changed files with 11491 additions and 0 deletions

23
src/kernel/boot.asm Normal file
View File

@@ -0,0 +1,23 @@
; brew-os/src/kernel/boot.asm
; 64-bit Entry Point for BrewOS
section .text
global _start
extern kmain
bits 64
_start:
; Ensure interrupts are disabled
cli
; Setup stack is handled by Limine, but we can re-align if paranoid
; (Limine guarantees 16-byte alignment)
; Call the C kernel entry point
call kmain
; Halt if kmain returns
hlt
.loop:
jmp .loop