aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-02-05 21:23:39 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-02-05 21:23:39 -0500
commiteac894df0cf5bd39da606569c053eaa590257ac1 (patch)
treeb7951c000a2bc3ea74694bc3110f5cf840b83b1a
parent423a04d6c244e6126b1e49285181e59bd0c196fb (diff)
downloadseabios-hppa-eac894df0cf5bd39da606569c053eaa590257ac1.zip
seabios-hppa-eac894df0cf5bd39da606569c053eaa590257ac1.tar.gz
seabios-hppa-eac894df0cf5bd39da606569c053eaa590257ac1.tar.bz2
Don't mask irqs in default hardware irq handler.
The latest PCI spec requires option roms to call default bios handler. So, the bios must not mask irqs. Also, make the default hw irq handlers less verbose.
-rw-r--r--src/config.h4
-rw-r--r--src/pic.c11
2 files changed, 4 insertions, 11 deletions
diff --git a/src/config.h b/src/config.h
index cb9b1da..7b62faf 100644
--- a/src/config.h
+++ b/src/config.h
@@ -145,8 +145,8 @@
#define DEBUG_ISR_74 9
#define DEBUG_ISR_75 1
#define DEBUG_ISR_76 10
-#define DEBUG_ISR_hwpic1 1
-#define DEBUG_ISR_hwpic2 1
+#define DEBUG_ISR_hwpic1 5
+#define DEBUG_ISR_hwpic2 5
#define DEBUG_HDL_pnp 1
#endif // config.h
diff --git a/src/pic.c b/src/pic.c
index aa0453a..382dcbb 100644
--- a/src/pic.c
+++ b/src/pic.c
@@ -34,20 +34,13 @@ pic_setup()
void VISIBLE16
handle_hwpic1(struct bregs *regs)
{
- u8 isr = get_pic1_isr();
- dprintf(DEBUG_ISR_hwpic1, "Got noisy pic1 irq %x\n", isr);
- isr &= ~PIC1_IRQ2; // don't ever mask the cascaded irq
- if (isr)
- mask_pic1(isr);
+ dprintf(DEBUG_ISR_hwpic1, "handle_hwpic1 irq=%x\n", get_pic1_isr());
eoi_pic1();
}
void VISIBLE16
handle_hwpic2(struct bregs *regs)
{
- u8 isr = get_pic2_isr();
- dprintf(DEBUG_ISR_hwpic2, "Got noisy pic2 irq %x\n", isr);
- if (isr)
- mask_pic2(isr);
+ dprintf(DEBUG_ISR_hwpic2, "handle_hwpic2 irq=%x\n", get_pic2_isr());
eoi_pic2();
}