parent
57fabda398
commit
df58911ac4
@ -1,8 +0,0 @@
|
|||||||
pub fn init() {
|
|
||||||
use consts::irq::{IRQ_KBD, IRQ_COM1};
|
|
||||||
// TODO set irq handler
|
|
||||||
// super::pic::enable_irq(IRQ_KBD);
|
|
||||||
let mut ioapic = super::apic::IOAPIC.lock();
|
|
||||||
ioapic.enable(IRQ_KBD, 0);
|
|
||||||
ioapic.enable(IRQ_COM1, 0);
|
|
||||||
}
|
|
@ -0,0 +1,7 @@
|
|||||||
|
pub fn init() {
|
||||||
|
assert_has_not_been_called!("keyboard::init must be called only once");
|
||||||
|
|
||||||
|
use consts::irq::*;
|
||||||
|
use arch::interrupt::enable_irq;
|
||||||
|
enable_irq(IRQ_KBD);
|
||||||
|
}
|
Loading…
Reference in new issue