From a7ca82133bcb8139bb9d11aa717657ef42ab6cfe Mon Sep 17 00:00:00 2001 From: Miguel Date: Mon, 10 Sep 2018 22:31:48 +0200 Subject: fixed bug in asm_pit_rate_ --- kernel/apic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel/apic.c') diff --git a/kernel/apic.c b/kernel/apic.c index a670208..a90cbf6 100644 --- a/kernel/apic.c +++ b/kernel/apic.c @@ -147,6 +147,9 @@ void ioapic_config() // PIT irq 00 -> 02 flags 0 -> 0x90 // kb irq 01 -> 01 flags ? -> 0x91 // mouse irq 12 -> 12 flags ? -> 0x92 +// ioapic_config_entry(2,0x90|0x2000,0x3<<24); // egde trigger on falling +// ioapic_config_entry(2,0x90|0x8000,0x3<<24); // level trigger on high +// ioapic_config_entry(2,0x90|0xa000,0x3<<24); // level trigger on low ioapic_config_entry(2,0x90,0x0); ioapic_config_entry(1,0x91,0x0); ioapic_config_entry(12,0x92,0x0); -- cgit v1.2.3