diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-11 17:59:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-11 17:59:28 +0100 |
commit | 0b76aff59b586d87ee0449bc7deda878f4633515 (patch) | |
tree | 8fd773681e302d84bc1f33c2a2bdf791f0b0df95 /src/kernel/dev | |
parent | 64b9108a58d3483e9b63511c4cf74b12dceeb0f6 (diff) | |
download | kogata-0b76aff59b586d87ee0449bc7deda878f4633515.tar.gz kogata-0b76aff59b586d87ee0449bc7deda878f4633515.zip |
Add better stack tracing technology (now uses kernel memory map!)
Diffstat (limited to 'src/kernel/dev')
-rw-r--r-- | src/kernel/dev/pckbd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |