Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax Nexus vector number is 0x14-0x17, not 14-17! Fo...



details:   https://anonhg.NetBSD.org/src/rev/40d21eb6ec39
branches:  trunk
changeset: 494650:40d21eb6ec39
user:      ragge <ragge%NetBSD.org@localhost>
date:      Mon Jul 10 09:14:32 2000 +0000

description:
Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
one right. Pointed out by Kenn Humborg (kenn%linux.ie@localhost).

diffstat:

 sys/arch/vax/include/scb.h |  4 ++--
 sys/arch/vax/mba/mba.c     |  4 ++--
 sys/arch/vax/uba/uba_sbi.c |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r cee41c4564cb -r 40d21eb6ec39 sys/arch/vax/include/scb.h
--- a/sys/arch/vax/include/scb.h        Mon Jul 10 08:58:31 2000 +0000
+++ b/sys/arch/vax/include/scb.h        Mon Jul 10 09:14:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scb.h,v 1.10 2000/06/05 00:09:19 matt Exp $    */
+/*     $NetBSD: scb.h,v 1.11 2000/07/10 09:14:34 ragge Exp $   */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -107,7 +107,7 @@
 #define        SCB_KSTACK      0
 #define        SCB_ISTACK      1
 
-#define vecnum(bus, ipl, tr) (256+(ipl-14)*64+tr*4+bus*256)
+#define vecnum(bus, ipl, tr) (256+(ipl-0x14)*64+tr*4+bus*256)
 
 /*
  * This struct is used when setting up interrupt vectors dynamically.
diff -r cee41c4564cb -r 40d21eb6ec39 sys/arch/vax/mba/mba.c
--- a/sys/arch/vax/mba/mba.c    Mon Jul 10 08:58:31 2000 +0000
+++ b/sys/arch/vax/mba/mba.c    Mon Jul 10 09:14:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mba.c,v 1.24 2000/06/29 07:14:20 mrg Exp $ */
+/*     $NetBSD: mba.c,v 1.25 2000/07/10 09:14:32 ragge Exp $ */
 /*
  * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -134,7 +134,7 @@
        /*
         * Set up interrupt vectors for this MBA.
         */
-       for (i = 14; i < 18; i++)
+       for (i = 0x14; i < 0x18; i++)
                scb_vecalloc(vecnum(0, i, sa->sa_nexnum),
                    mbaintr, sc, SCB_ISTACK, &sc->sc_intrcnt);
        evcnt_attach_dynamic(&sc->sc_intrcnt, EVCNT_TYPE_INTR, NULL,
diff -r cee41c4564cb -r 40d21eb6ec39 sys/arch/vax/uba/uba_sbi.c
--- a/sys/arch/vax/uba/uba_sbi.c        Mon Jul 10 08:58:31 2000 +0000
+++ b/sys/arch/vax/uba/uba_sbi.c        Mon Jul 10 09:14:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uba_sbi.c,v 1.7 2000/06/05 00:09:20 matt Exp $    */
+/*     $NetBSD: uba_sbi.c,v 1.8 2000/07/10 09:14:33 ragge Exp $           */
 /*
  * Copyright (c) 1996 Jonathan Stone.
  * Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
@@ -152,7 +152,7 @@
        /*
         * Set up dispatch vectors for DW780.
         */
-       for (i = 14; i < 17; i++)
+       for (i = 0x14; i < 0x18; i++)
                scb_vecalloc(vecnum(0, i, sa->sa_nexnum), uba_dw780int,
                    sc, SCB_ISTACK, &sc->uv_sc.uh_intrcnt);
        evcnt_attach_dynamic(&sc->uv_sc.uh_intrcnt, EVCNT_TYPE_INTR, NULL,



Home | Main Index | Thread Index | Old Index