Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/pci Fixed the one minor buglet that kept 8200...



details:   https://anonhg.NetBSD.org/src/rev/3d5a75510680
branches:  trunk
changeset: 513785:3d5a75510680
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Mon Aug 13 23:36:30 2001 +0000

description:
Fixed the one minor buglet that kept 8200s from working
(SCB_VECTOIDX(vec) - SCB_IOVECBASE] -> SCB_VECTOIDX(vec - SCB_IOVECBASE))

Sigh. This is all very good work- this new interrupt stuff. Yet like the
last time my good friend Jason 'simplified' things, we lost information.
It used to be you could tell which specific slot an interrupt was frame
based upon the vector. Now you can't because they're allocated dynamically.
Oh well- it's not all that important.

diffstat:

 sys/arch/alpha/pci/pci_kn8ae.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r ffad640129b7 -r 3d5a75510680 sys/arch/alpha/pci/pci_kn8ae.c
--- a/sys/arch/alpha/pci/pci_kn8ae.c    Mon Aug 13 23:16:11 2001 +0000
+++ b/sys/arch/alpha/pci/pci_kn8ae.c    Mon Aug 13 23:36:30 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_kn8ae.c,v 1.19 2001/07/27 00:25:20 thorpej Exp $ */
+/* $NetBSD: pci_kn8ae.c,v 1.20 2001/08/13 23:36:30 mjacob Exp $ */
 
 /*
  * Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.19 2001/07/27 00:25:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.20 2001/08/13 23:36:30 mjacob Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -178,7 +178,7 @@
        pin = IH_PIN(ih);
        vec = IH_VEC(ih);
 
-       scb = &scb_iovectab[SCB_VECTOIDX(vec) - SCB_IOVECBASE];
+       scb = &scb_iovectab[SCB_VECTOIDX(vec - SCB_IOVECBASE)];
 
        if (scb->scb_func != kn8ae_spurious) {
                printf("dec_kn8ae_intr_establish: vector 0x%lx not mapped\n",
@@ -225,7 +225,7 @@
 
        vec = IH_VEC(ih);
 
-       scb = &scb_iovectab[SCB_VECTOIDX(vec) - SCB_IOVECBASE];
+       scb = &scb_iovectab[SCB_VECTOIDX(vec - SCB_IOVECBASE)];
 
        kn8ae_enadis_intr(ccp, ih, 0);
 
@@ -235,9 +235,7 @@
 void
 kn8ae_spurious(void *arg, u_long vec)
 {
-
-       printf("Spurious interrupt on temporary interrupt vector 0x%lx\n",
-           vec);
+       printf("Spurious interrupt on temporary interrupt vector 0x%lx\n", vec);
 }
 
 void



Home | Main Index | Thread Index | Old Index