did some restructuring, got multitasking almost working

This commit is contained in:
2026-06-26 20:05:01 -05:00
parent 57d7d34c6d
commit 43bc0df81a
35 changed files with 481 additions and 307 deletions

13
kernel/drivers/pit/pit.S Normal file
View File

@@ -0,0 +1,13 @@
.code32
.global init_pit
init_pit: # tickrate: 1193182/1000 = 0x04A9 (1000hz) (1ms)
movb $0x36, %al
outb %al, $0x43
movb $0xA9, %al
outb %al, $0x40
movb $0x04, %al
outb %al, $0x40
ret