diff options
author | peter <peter@FreeBSD.org> | 2001-11-03 04:55:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-11-03 04:55:48 +0000 |
commit | 88067114a17b2aa603e5cba890820b8457af23a7 (patch) | |
tree | 8ee323b4f7df911bc34dc42d7f5b59a7d8997fb8 /sys/ddb | |
parent | ddeebb893038ccb70dc59c7f05d41410606aad5b (diff) | |
download | FreeBSD-src-88067114a17b2aa603e5cba890820b8457af23a7.zip FreeBSD-src-88067114a17b2aa603e5cba890820b8457af23a7.tar.gz |
Add a 'reset' command. This is useful for panics really early before
any symbols are loaded. Especially for unattended machines.
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_command.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index b97c05a..ed6777e 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -62,6 +62,7 @@ SET_DECLARE(db_show_cmd_set, struct command); static db_cmdfcn_t db_fncall; static db_cmdfcn_t db_gdb; +static db_cmdfcn_t db_reset; /* XXX this is actually forward-static. */ extern struct command db_show_cmds[]; @@ -415,6 +416,7 @@ static struct command db_command_table[] = { { "show", 0, 0, db_show_cmds }, { "ps", db_ps, 0, 0 }, { "gdb", db_gdb, 0, 0 }, + { "reset", db_reset, 0, 0 }, { (char *)0, } }; @@ -569,3 +571,14 @@ db_gdb (dummy1, dummy2, dummy3, dummy4) boothowto & RB_GDB ? "GDB remote protocol mode" : "DDB debugger"); } + +static void +db_reset(dummy1, dummy2, dummy3, dummy4) + db_expr_t dummy1; + boolean_t dummy2; + db_expr_t dummy3; + char * dummy4; +{ + + cpu_reset(); +} |