summaryrefslogtreecommitdiff
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
parentbc7c2e71ad45af3f2a31d31f40e53a661da476e6 (diff)
New boot command: boot halt.
Don't sync, don't dump, just halt.
-rw-r--r--sys/ddb/db_command.c15
-rw-r--r--sys/ddb/db_command.h3
2 files changed, 15 insertions, 3 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
diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h
index 8eb5b5bf79f..7a75b833032 100644
--- a/sys/ddb/db_command.h
+++ b/sys/ddb/db_command.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_command.h,v 1.10 2000/06/07 09:40:02 art Exp $ */
+/* $OpenBSD: db_command.h,v 1.11 2001/04/18 23:17:25 art Exp $ */
/* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */
/*
@@ -50,6 +50,7 @@ void db_fncall __P((db_expr_t, int, db_expr_t, char *));
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 *));
db_addr_t db_dot; /* current location */
db_addr_t db_last_addr; /* last explicit address typed */