diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-18 23:17:26 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-04-18 23:17:26 +0000 |
commit | f0791d19fe1e4dba65a43cf9334c68be91cc1eab (patch) | |
tree | 3bb0771ec17263a629b6aa4b3203d13a972ccbbc /sys/ddb/db_command.c | |
parent | bc7c2e71ad45af3f2a31d31f40e53a661da476e6 (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.c | 15 |
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 |