parent
8af7220d25
commit
156034c3d1
@ -1,6 +1,8 @@
|
|||||||
pub fn init() {
|
pub fn init() {
|
||||||
use consts::irq::IRQ_KBD;
|
use consts::irq::{IRQ_KBD, IRQ_COM1};
|
||||||
// TODO set irq handler
|
// TODO set irq handler
|
||||||
// super::pic::enable_irq(IRQ_KBD);
|
// super::pic::enable_irq(IRQ_KBD);
|
||||||
super::apic::IOAPIC.lock().enable(IRQ_KBD, 0);
|
let mut ioapic = super::apic::IOAPIC.lock();
|
||||||
|
ioapic.enable(IRQ_KBD, 0);
|
||||||
|
ioapic.enable(IRQ_COM1, 0);
|
||||||
}
|
}
|
Loading…
Reference in new issue