Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Add a function that dumps ioapic redir stat...



details:   https://anonhg.NetBSD.org/src/rev/a0c89072eb47
branches:  trunk
changeset: 547011:a0c89072eb47
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun May 11 13:49:02 2003 +0000

description:
Add a function that dumps ioapic redir state, for our debugging pleasure.

diffstat:

 sys/arch/x86/x86/ioapic.c |  22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 0755294f86a8 -r a0c89072eb47 sys/arch/x86/x86/ioapic.c
--- a/sys/arch/x86/x86/ioapic.c Sun May 11 13:37:34 2003 +0000
+++ b/sys/arch/x86/x86/ioapic.c Sun May 11 13:49:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ioapic.c,v 1.4 2003/05/04 22:01:57 fvdl Exp $  */
+/*     $NetBSD: ioapic.c,v 1.5 2003/05/11 13:49:02 fvdl Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -517,3 +517,23 @@
        }
        ioapic_hwmask(pic, pin);
 }
+
+#ifdef DDB
+void ioapic_dump(void);
+
+void
+ioapic_dump(void)
+{
+       struct ioapic_softc *sc;
+       struct ioapic_pin *ip;
+       int p;
+
+       for (sc = ioapics; sc != NULL; sc = sc->sc_next) {
+               for (p = 0; p < sc->sc_apic_sz; p++) {
+                       ip = &sc->sc_pins[p];
+                       if (ip->ip_type != IST_NONE)
+                               ioapic_print_redir(sc, "dump", p);
+               }
+       }
+}
+#endif



Home | Main Index | Thread Index | Old Index