summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1997-10-06 02:56:15 +0000
committernate <nate@FreeBSD.org>1997-10-06 02:56:15 +0000
commit46da712d6600d7a42389e5dac4e818d86fd0abb9 (patch)
tree6d1ff15e0572b99805f9cce140261adef38c758b /sys
parentd4fe8d6ee9070163dff980fbf50477faa7320f49 (diff)
downloadFreeBSD-src-46da712d6600d7a42389e5dac4e818d86fd0abb9.zip
FreeBSD-src-46da712d6600d7a42389e5dac4e818d86fd0abb9.tar.gz
- Allocate the 'PCIC' interrupt from the last available (higher #) IRQ
instead of the first available, like Win95 does. This appears to help on some machines, and avoids potential problems with built-in serial ports which tend to live at IRQ 3, which is usually picked with the old method.
Diffstat (limited to 'sys')
-rw-r--r--sys/pccard/pccard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index a8b2646..2747fed 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -451,7 +451,7 @@ pccard_alloc_intr(u_int imask, inthand2_t *hand, int unit,
int irq;
unsigned int mask;
- for (irq = 1; irq < ICU_LEN; irq++) {
+ for (irq = ICU_LEN; irq > 0; irq--) {
mask = 1ul << irq;
if (!(mask & imask))
continue;
OpenPOWER on IntegriCloud