PIT
This commit is contained in:
0
kernel/drivers/pit/pit.h
Normal file
0
kernel/drivers/pit/pit.h
Normal file
16
kernel/drivers/pit/pit_stubs.S
Normal file
16
kernel/drivers/pit/pit_stubs.S
Normal 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
|
||||
Reference in New Issue
Block a user