did some restructuring, got multitasking almost working
This commit is contained in:
13
kernel/drivers/pit/pit.S
Normal file
13
kernel/drivers/pit/pit.S
Normal 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
|
||||
Reference in New Issue
Block a user