diff options
author | 2002-01-28 19:31:56 +0000 | |
---|---|---|
committer | 2002-01-28 19:31:56 +0000 | |
commit | e6ac69793f0d0a03b5648b826b7fe451189c794d (patch) | |
tree | 28a8d2b472073ba7ee07f7d5ea879e1bd42dd3c0 | |
parent | correct function name. (diff) | |
download | wireguard-openbsd-e6ac69793f0d0a03b5648b826b7fe451189c794d.tar.xz wireguard-openbsd-e6ac69793f0d0a03b5648b826b7fe451189c794d.zip |
Add "boot reboot" to please jason@ and "boot poweroff" to please drahn@.
-rw-r--r-- | sys/ddb/db_command.c | 24 | ||||
-rw-r--r-- | sys/ddb/db_command.h | 4 |
2 files changed, 26 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 38b1f27105f..7a97a8dfb68 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.25 2002/01/02 22:22:00 miod Exp $ */ +/* $OpenBSD: db_command.c,v 1.26 2002/01/28 19:31:56 miod Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -408,6 +408,8 @@ struct db_command db_boot_cmds[] = { { "crash", db_boot_crash_cmd, 0, 0 }, { "dump", db_boot_dump_cmd, 0, 0 }, { "halt", db_boot_halt_cmd, 0, 0 }, + { "reboot", db_boot_reboot_cmd, 0, 0 }, + { "poweroff", db_boot_poweroff_cmd, 0, 0 }, { NULL, } }; @@ -617,3 +619,23 @@ db_boot_halt_cmd(addr, haddr, count, modif) { boot(RB_NOSYNC | RB_HALT | RB_TIMEBAD); } + +void +db_boot_reboot_cmd(addr, haddr, count, modif) + db_expr_t addr; + int haddr; + db_expr_t count; + char *modif; +{ + boot(RB_AUTOBOOT | RB_NOSYNC | RB_TIMEBAD); +} + +void +db_boot_poweroff_cmd(addr, haddr, count, modif) + db_expr_t addr; + int haddr; + db_expr_t count; + char *modif; +{ + boot(RB_NOSYNC | RB_HALT | RB_POWERDOWN | RB_TIMEBAD); +} diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index fc81cb0e4a0..06643437c6f 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.h,v 1.12 2002/01/02 22:22:00 miod Exp $ */ +/* $OpenBSD: db_command.h,v 1.13 2002/01/28 19:31:56 miod Exp $ */ /* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */ /* @@ -54,6 +54,8 @@ void db_boot_sync_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_boot_crash_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_boot_dump_cmd __P((db_expr_t, int, db_expr_t, char *)); void db_boot_halt_cmd __P((db_expr_t, int, db_expr_t, char *)); +void db_boot_reboot_cmd __P((db_expr_t, int, db_expr_t, char *)); +void db_boot_poweroff_cmd __P((db_expr_t, int, db_expr_t, char *)); db_addr_t db_dot; /* current location */ db_addr_t db_last_addr; /* last explicit address typed */ |