Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Don't grovel interrupt-related info here; ...



details:   https://anonhg.NetBSD.org/src/rev/65a7e286e154
branches:  trunk
changeset: 518296:65a7e286e154
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Nov 28 00:19:53 2001 +0000

description:
Don't grovel interrupt-related info here; if a platform wants to
do that, let it do that in a way it can control.

diffstat:

 sys/arch/arm/arm32/db_interface.c |   4 +---
 sys/arch/arm/arm32/db_machdep.c   |  39 +--------------------------------------
 2 files changed, 2 insertions(+), 41 deletions(-)

diffs (76 lines):

diff -r 8034a2505566 -r 65a7e286e154 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Wed Nov 28 00:18:46 2001 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Wed Nov 28 00:19:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.11 2001/11/23 21:18:30 thorpej Exp $        */
+/*     $NetBSD: db_interface.c,v 1.12 2001/11/28 00:19:53 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1996 Scott K. Stevens
@@ -300,13 +300,11 @@
        asm(".word      0xe7ffffff");
 }
 
-void db_show_intrchain_cmd     __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 void db_show_panic_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 void db_show_frame_cmd __P((db_expr_t addr, int have_addr, db_expr_t count, char *modif));
 
 const struct db_command db_machine_command_table[] = {
        { "frame",      db_show_frame_cmd,      0, NULL },
-       { "intrchain",  db_show_intrchain_cmd,  0, NULL },
        { "panic",      db_show_panic_cmd,      0, NULL },
 #ifdef ARM32_DB_COMMANDS
        ARM32_DB_COMMANDS,
diff -r 8034a2505566 -r 65a7e286e154 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Wed Nov 28 00:18:46 2001 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Wed Nov 28 00:19:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.5 2001/09/05 17:08:41 matt Exp $      */
+/*     $NetBSD: db_machdep.c,v 1.6 2001/11/28 00:19:53 thorpej Exp $   */
 
 /* 
  * Copyright (c) 1996 Mark Brinicombe
@@ -39,43 +39,6 @@
 #include <ddb/db_sym.h>
 #include <ddb/db_output.h>
 
-#include <machine/intr.h>
-
-void
-db_show_intrchain_cmd(addr, have_addr, count, modif)
-       db_expr_t       addr;
-       int             have_addr;
-       db_expr_t       count;
-       char            *modif;
-{
-#ifndef NEWINTR
-       int loop;
-       struct irqhandler *ptr;
-       char *name;
-       db_expr_t offset;
-
-       for (loop = 0; loop < NIRQS; ++loop) {
-               ptr = irqhandlers[loop];
-               if (ptr) {
-                       db_printf("IRQ %d\n", loop);
-
-                       while (ptr) {
-                               db_printf("  %-13s %d ", ptr->ih_name, ptr->ih_level);
-                               db_find_sym_and_offset((u_int)ptr->ih_func, &name, &offset);
-                               if (name == NULL)
-                                       name = "?";
-
-                               db_printf("%s(", name);
-                               db_printsym((u_int)ptr->ih_func, DB_STGY_PROC,
-                                   db_printf);
-                               db_printf(") %08x\n", (u_int)ptr->ih_arg);
-                               ptr = ptr->ih_next;
-                       }
-               }
-       }
-#endif /* NEWINTR */
-}
-
 
 void
 db_show_panic_cmd(addr, have_addr, count, modif)



Home | Main Index | Thread Index | Old Index