Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev give more debug output about mapping in...



details:   https://anonhg.NetBSD.org/src/rev/c55897ecf7b2
branches:  trunk
changeset: 749399:c55897ecf7b2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 28 21:32:46 2009 +0000

description:
give more debug output about mapping interrupts.

diffstat:

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

diffs (33 lines):

diff -r ae5d6973bb70 -r c55897ecf7b2 sys/arch/sparc64/dev/pci_machdep.c
--- a/sys/arch/sparc64/dev/pci_machdep.c        Sat Nov 28 21:07:02 2009 +0000
+++ b/sys/arch/sparc64/dev/pci_machdep.c        Sat Nov 28 21:32:46 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.63 2009/11/27 22:31:29 mrg Exp $     */
+/*     $NetBSD: pci_machdep.c,v 1.64 2009/11/28 21:32:46 mrg Exp $     */
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.63 2009/11/27 22:31:29 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.64 2009/11/28 21:32:46 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -402,12 +402,14 @@
                KASSERT(pa->pa_pc->spc_find_ino);
                pa->pa_pc->spc_find_ino(pa, &interrupts);
        }
+       DPRINTF(SPDB_INTMAP, ("OF_mapintr() gave %x\n", interrupts));
 
        /* Try to find an IPL for this type of device. */
        prom_getpropstringA(node, "device_type", devtype, sizeof(devtype));
        for (len = 0; intrmap[len].in_class != NULL; len++)
                if (strcmp(intrmap[len].in_class, devtype) == 0) {
                        interrupts |= INTLEVENCODE(intrmap[len].in_lev);
+                       DPRINTF(SPDB_INTMAP, ("reset to %x\n", interrupts));
                        break;
                }
 



Home | Main Index | Thread Index | Old Index