Implemented serial driver

This commit is contained in:
2025-02-18 14:06:41 +01:00
parent f9dece59ce
commit 609e10e13c
6 changed files with 145 additions and 6 deletions
+5 -5
View File
@@ -17,11 +17,12 @@ multiboot:
dd FLAGS
dd CHECK
; Initialize stack
section .bss
align 16
; Initialize stack
stack_bottom:
resb 16384 ; 16kB
resb 16384 ; 16kB
stack_top:
; Entry point
@@ -29,9 +30,8 @@ section .text
global _start
extern kmain
_start:
mov esp, stack_top
call kmain ; Call kernel main
mov esp, stack_top ; Setup stack
call kmain ; Call kernel main
; Hang if kernel returns
cli