From 6270089212959982d71f5cd36d3e27ade4f4daf7 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Mon, 6 Oct 1997 02:56:15 +0000 Subject: [PATCH] - 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. --- sys/pccard/pccard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index a8b26465e82..2747fedf51f 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;