From 0b76aff59b586d87ee0449bc7deda878f4633515 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 17:59:28 +0100 Subject: Add better stack tracing technology (now uses kernel memory map!) --- src/kernel/dev/pckbd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/dev') diff --git a/src/kernel/dev/pckbd.c b/src/kernel/dev/pckbd.c index 8a4c002..f7452b2 100644 --- a/src/kernel/dev/pckbd.c +++ b/src/kernel/dev/pckbd.c @@ -74,6 +74,9 @@ fs_node_ops_t pckbd_ops = { }; void pckbd_setup(fs_t *iofs) { + uint8_t a = 0, b = 0; + while ((a = inb(0x60)) != b) b = a; + idt_set_irq_handler(IRQ1, &irq1_handler); nullfs_add_node(iofs, "/input/pckbd", 0, &pckbd_ops, 0); -- cgit v1.2.3