diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-11-18 17:02:15 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-11-18 17:02:15 +0000 |
commit | c74a722c1723dbae187aeb75eff12c00de876e6d (patch) | |
tree | e2361ae3904f0904cd226931512b68fe601b0147 /sys/arch | |
parent | 423f04e373bf98e65459bde608107b9d3611ab3b (diff) |
Fix end of interrupt routine to make pciide(4) work.
Clue stick from miod@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/loongson/loongson/generic3a_machdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/loongson/loongson/generic3a_machdep.c b/sys/arch/loongson/loongson/generic3a_machdep.c index 8d891c28ff0..0348f5f3d4e 100644 --- a/sys/arch/loongson/loongson/generic3a_machdep.c +++ b/sys/arch/loongson/loongson/generic3a_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: generic3a_machdep.c,v 1.1 2016/11/17 14:41:21 visa Exp $ */ +/* $OpenBSD: generic3a_machdep.c,v 1.2 2016/11/18 17:02:14 visa Exp $ */ /* * Copyright (c) 2009, 2010, 2012 Miodrag Vallat. @@ -80,13 +80,11 @@ const struct legacy_io_range rs780e_legacy_ranges[] = { { IO_DMAPG + 4, IO_DMAPG + 4 }, /* mcclock */ { IO_RTC, IO_RTC + 1 }, -#ifdef notyet /* pciide */ { 0x170, 0x170 + 7 }, { 0x1f0, 0x1f0 + 7 }, { 0x376, 0x376 }, { 0x3f6, 0x3f6 }, -#endif /* pckbc */ { IO_KBD, IO_KBD }, { IO_KBD + 4, IO_KBD + 4 }, @@ -246,7 +244,7 @@ rs780e_eoi(int irq) if (irq & 8) { REGVAL8(HTB_IO_BASE + IO_ICU2 + PIC_OCW2) = - OCW2_SELECT | OCW2_EOI | OCW2_SL | OCW2_ILS(irq); + OCW2_SELECT | OCW2_EOI | OCW2_SL | OCW2_ILS(irq & 7); irq = IRQ_CASCADE; } REGVAL8(HTB_IO_BASE + IO_ICU1 + PIC_OCW2) = |