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 Sort db_commands.



details:   https://anonhg.NetBSD.org/src/rev/ee2e933ab8a2
branches:  trunk
changeset: 930779:ee2e933ab8a2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Apr 14 07:59:43 2020 +0000

description:
Sort db_commands.

diffstat:

 sys/arch/arm/arm32/db_machdep.c |  22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diffs (53 lines):

diff -r 83417d4366e7 -r ee2e933ab8a2 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Tue Apr 14 07:41:05 2020 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Tue Apr 14 07:59:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.27 2020/03/25 06:17:23 skrll Exp $    */
+/*     $NetBSD: db_machdep.c,v 1.28 2020/04/14 07:59:43 skrll Exp $    */
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.27 2020/03/25 06:17:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.28 2020/04/14 07:59:43 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -109,24 +109,26 @@
 const struct db_variable * const db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
 
 const struct db_command db_machine_command_table[] = {
+#ifdef _KERNEL
+#if defined(MULTIPROCESSOR)
+       { DDB_ADD_CMD("cpu",    db_switch_cpu_cmd,      0,
+                       "switch to a different cpu",
+                       NULL,NULL) },
+#endif /* MULTIPROCESSOR */
+       { DDB_ADD_CMD("fault",  db_show_fault_cmd,      0,
+                       "Displays the fault registers",
+                       NULL,NULL) },
+#endif
        { DDB_ADD_CMD("frame",  db_show_frame_cmd,      0,
                        "Displays the contents of a trapframe",
                        "[address]",
                        "   address:\taddress of trapfame to display")},
 #ifdef _KERNEL
-       { DDB_ADD_CMD("fault",  db_show_fault_cmd,      0,
-                       "Displays the fault registers",
-                       NULL,NULL) },
 #if defined(CPU_CORTEXA5) || defined(CPU_CORTEXA7)
        { DDB_ADD_CMD("tlb",    db_show_tlb_cmd,        0,
                        "Displays the TLB",
                        NULL,NULL) },
 #endif
-#if defined(MULTIPROCESSOR)
-       { DDB_ADD_CMD("cpu",    db_switch_cpu_cmd,      0,
-                       "switch to a different cpu",
-                       NULL,NULL) },
-#endif
 #endif /* _KERNEL */
 
 #ifdef ARM32_DB_COMMANDS



Home | Main Index | Thread Index | Old Index