summaryrefslogtreecommitdiff
path: root/src/kbd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-11-26 17:02:43 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-11-26 17:02:43 -0500
commitd21c089acf7016bb22ab81a96c5e20ca8075e3ea (patch)
treefb11094ee8d95707a8e6b1668b72e7d3c3bd4e3b /src/kbd.c
parent952974e3eccaefc667466e8309e15a7fbb867326 (diff)
downloadqemu-seabios-d21c089acf7016bb22ab81a96c5e20ca8075e3ea.tar.gz
Enable a default hw irq handler.
Also, only route hw irqs to their handlers when they are enabled. (This ensures that if a subsystem is disabled that the default hwirq handler will be used.) Add helper macros to declare the extern asm handlers. Always enable the RTC hwirq at startup (as opposed to when it is first used). Fix bug in default handler - wrong bit was used for checking the cascaded irq.
Diffstat (limited to 'src/kbd.c')
-rw-r--r--src/kbd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kbd.c b/src/kbd.c
index 2d36c31..cb60306 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -97,8 +97,7 @@ kbd_setup()
keyboard_init();
- // Enable IRQ1 (handle_09)
- unmask_pic1(PIC1_IRQ1);
+ enable_hwirq(1, entry_09);
}
static u8