Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Change a fixup of interrupt number ...



details:   https://anonhg.NetBSD.org/src/rev/feeab78e5cb7
branches:  trunk
changeset: 546069:feeab78e5cb7
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Sun Apr 20 00:29:37 2003 +0000

description:
Change a fixup of interrupt number a bit.

diffstat:

 sys/arch/sparc64/sparc64/rbus_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r eda98701e78b -r feeab78e5cb7 sys/arch/sparc64/sparc64/rbus_machdep.c
--- a/sys/arch/sparc64/sparc64/rbus_machdep.c   Sun Apr 20 00:19:56 2003 +0000
+++ b/sys/arch/sparc64/sparc64/rbus_machdep.c   Sun Apr 20 00:29:37 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbus_machdep.c,v 1.1 2003/03/22 06:36:19 nakayama Exp $        */
+/*     $NetBSD: rbus_machdep.c,v 1.2 2003/04/20 00:29:37 nakayama Exp $        */
 
 /*
  * Copyright (c) 2003 Takeshi Nakayama.
@@ -183,6 +183,8 @@
        /*
         * interrupt fixup:
         *      fake interrupt line not for giving up the probe.
+        *      interrupt numbers assigned by OBP are [0x00,0x3f],
+        *      so they map to [0x40,0x7f] due to inhibit the value 0x00.
         */
        len = OF_getproplen(node, "interrupts");
        if (len < sizeof(intr))
@@ -193,7 +195,7 @@
        else if (OF_mapintr(node, &intr, sizeof(intr), sizeof(intr)) < 0)
                printf("pccbb_attach_hook: OF_mapintr failed\n");
        else {
-               pa->pa_intrline = intr;
+               pa->pa_intrline = intr | 0x40;
                DPRINTF("pccbb_attach_hook: interrupt line %d\n", intr);
        }
 }



Home | Main Index | Thread Index | Old Index