summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-04-18 23:17:26 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-04-18 23:17:26 +0000
commitf0791d19fe1e4dba65a43cf9334c68be91cc1eab (patch)
tree3bb0771ec17263a629b6aa4b3203d13a972ccbbc /sys/ddb/db_command.c
parentbc7c2e71ad45af3f2a31d31f40e53a661da476e6 (diff)
New boot command: boot halt.
Don't sync, don't dump, just halt.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index d9c38757241..809487af412 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.c,v 1.19 2000/06/07 11:21:39 art Exp $ */
+/* $OpenBSD: db_command.c,v 1.20 2001/04/18 23:17:25 art Exp $ */
/* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */
/*
@@ -378,7 +378,8 @@ struct db_command db_boot_cmds[] = {
{ "sync", db_boot_sync_cmd, 0, 0 },
{ "crash", db_boot_crash_cmd, 0, 0 },
{ "dump", db_boot_dump_cmd, 0, 0 },
- { (char *)0, }
+ { "halt", db_boot_halt_cmd, 0, 0 },
+ { NULL, }
};
struct db_command db_command_table[] = {
@@ -577,3 +578,13 @@ db_boot_dump_cmd(addr, haddr, count, modif)
{
boot(RB_DUMP | RB_TIMEBAD);
}
+
+void
+db_boot_halt_cmd(addr, haddr, count, modif)
+ db_expr_t addr;
+ int haddr;
+ db_expr_t count;
+ char *modif;
+{
+ boot(RB_NOSYNC | RB_HALT | RB_TIMEBAD);
+} \ No newline at end of file