Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch implement ddb help for sun2/sun3 commands. PR#3831...
details: https://anonhg.NetBSD.org/src/rev/e7f325f063f5
branches: trunk
changeset: 755434:e7f325f063f5
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jun 06 03:34:14 2010 +0000
description:
implement ddb help for sun2/sun3 commands. PR#38310 and PR#38308.
diffstat:
sys/arch/sun2/sun2/db_machdep.c | 16 ++++++++++------
sys/arch/sun3/sun3/db_machdep.c | 16 ++++++++++------
2 files changed, 20 insertions(+), 12 deletions(-)
diffs (74 lines):
diff -r fe96bf982758 -r e7f325f063f5 sys/arch/sun2/sun2/db_machdep.c
--- a/sys/arch/sun2/sun2/db_machdep.c Sun Jun 06 03:26:57 2010 +0000
+++ b/sys/arch/sun2/sun2/db_machdep.c Sun Jun 06 03:34:14 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.11 2008/04/28 20:23:37 martin Exp $ */
+/* $NetBSD: db_machdep.c,v 1.12 2010/06/06 03:34:14 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.11 2008/04/28 20:23:37 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.12 2010/06/06 03:34:14 mrg Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -58,10 +58,14 @@
static void db_mach_pagemap(db_expr_t, bool, db_expr_t, const char *);
const struct db_command db_machine_command_table[] = {
- { DDB_ADD_CMD("abort", db_mach_abort, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("halt", db_mach_halt, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("pgmap", db_mach_pagemap, CS_SET_DOT, NULL,NULL,NULL) },
- { DDB_ADD_CMD("reboot", db_mach_reboot, 0, NULL,NULL,NULL) },
+ { DDB_ADD_CMD("abort", db_mach_abort, 0,
+ "Calls prom_abort()", NULL, NULL) },
+ { DDB_ADD_CMD("halt", db_mach_halt, 0,
+ "Calls prom_halt()", NULL, NULL) },
+ { DDB_ADD_CMD("pgmap", db_mach_pagemap, CS_SET_DOT,
+ "Prints the PTE and segmap values", "virtual-address", NULL) },
+ { DDB_ADD_CMD("reboot", db_mach_reboot, 0,
+ "Calls prom_boot()", NULL, NULL) },
{ DDB_ADD_CMD( NULL,NULL,0,NULL,NULL,NULL) }
};
diff -r fe96bf982758 -r e7f325f063f5 sys/arch/sun3/sun3/db_machdep.c
--- a/sys/arch/sun3/sun3/db_machdep.c Sun Jun 06 03:26:57 2010 +0000
+++ b/sys/arch/sun3/sun3/db_machdep.c Sun Jun 06 03:34:14 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.26 2008/04/28 20:23:38 martin Exp $ */
+/* $NetBSD: db_machdep.c,v 1.27 2010/06/06 03:34:14 mrg Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.26 2008/04/28 20:23:38 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.27 2010/06/06 03:34:14 mrg Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -57,10 +57,14 @@
static void db_mach_pagemap(db_expr_t, bool, db_expr_t, const char *);
const struct db_command db_machine_command_table[] = {
- { DDB_ADD_CMD("abort", db_mach_abort, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("halt", db_mach_halt, 0, NULL,NULL,NULL) },
- { DDB_ADD_CMD("pgmap", db_mach_pagemap, CS_SET_DOT, NULL,NULL,NULL) },
- { DDB_ADD_CMD("reboot", db_mach_reboot, 0, NULL,NULL,NULL) },
+ { DDB_ADD_CMD("abort", db_mach_abort, 0,
+ "Calls prom_abort()", NULL, NULL) },
+ { DDB_ADD_CMD("halt", db_mach_halt, 0,
+ "Calls prom_halt()", NULL, NULL) },
+ { DDB_ADD_CMD("pgmap", db_mach_pagemap, CS_SET_DOT,
+ "Prints the PTE and segmap values", "virtual-address", NULL) },
+ { DDB_ADD_CMD("reboot", db_mach_reboot, 0,
+ "Calls prom_boot()", NULL, NULL) },
{ DDB_ADD_CMD(NULL,NULL,0,NULL,NULL,NULL) }
};
Home |
Main Index |
Thread Index |
Old Index