aboutsummaryrefslogtreecommitdiff
path: root/src/pic.c
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 /src/pic.c
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.
Diffstat (limited to 'src/pic.c')
-rw-r--r--src/pic.c11
1 files changed, 2 insertions, 9 deletions
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();
}