This commit is contained in:
2026-06-13 13:27:39 -05:00
parent 00fb70c25b
commit 3ecbcdf369
13 changed files with 106 additions and 14 deletions

0
kernel/drivers/pit/pit.h Normal file
View File

View File

@@ -0,0 +1,16 @@
#include "drivers/pit/pit.h"
.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