Module Name:    src
Committed By:   matt
Date:           Thu Jan 21 08:31:24 UTC 2010

Modified Files:
        src/sys/arch/mips/sibyte/pci [matt-nb5-mips64]: sbbrz_pci.c

Log Message:
fix off by one in intr_map.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/mips/sibyte/pci/sbbrz_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/sibyte/pci/sbbrz_pci.c
diff -u src/sys/arch/mips/sibyte/pci/sbbrz_pci.c:1.1.2.2 src/sys/arch/mips/sibyte/pci/sbbrz_pci.c:1.1.2.3
--- src/sys/arch/mips/sibyte/pci/sbbrz_pci.c:1.1.2.2	Thu Jan 21 06:59:12 2010
+++ src/sys/arch/mips/sibyte/pci/sbbrz_pci.c	Thu Jan 21 08:31:24 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: sbbrz_pci.c,v 1.1.2.2 2010/01/21 06:59:12 matt Exp $ */
+/* $NetBSD: sbbrz_pci.c,v 1.1.2.3 2010/01/21 08:31:24 matt Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -64,7 +64,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: sbbrz_pci.c,v 1.1.2.2 2010/01/21 06:59:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbbrz_pci.c,v 1.1.2.3 2010/01/21 08:31:24 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -233,7 +233,7 @@
 		return EINVAL;
 	if (bus == 0) {
 		*ihp = K_INT_PCI_INTA
-		    + ((device + pa->pa_intrpin - PCI_INTERRUPT_PIN_A) % 4);
+		    + (((device-5) + pa->pa_intrswiz + pa->pa_intrpin - PCI_INTERRUPT_PIN_A) % 4);
 		return 0;
 	}
 	return EOPNOTSUPP;

Reply via email to