summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-07-01 22:43:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-07-01 22:43:44 +0000
commit7a32b7a5e6f98c65a2918997eafb4487cb72b6ef (patch)
tree372ee9b44ec05f1f86fcd9e01e222c0f39134ad7
parent713f3baa72853ace79d4d03f8ed897fa3795c146 (diff)
Enable the ``machine foo'' commands under ddb.
Add a ``machine prom'' command, which returns to the BUG, like mvme68k has.
-rw-r--r--sys/arch/mvme88k/ddb/db_interface.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/ddb/db_interface.c b/sys/arch/mvme88k/ddb/db_interface.c
index 24b98ae206f..b78626f2164 100644
--- a/sys/arch/mvme88k/ddb/db_interface.c
+++ b/sys/arch/mvme88k/ddb/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.9 2001/06/08 08:09:11 art Exp $ */
+/* $OpenBSD: db_interface.c,v 1.10 2001/07/01 22:43:43 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -825,6 +825,11 @@ void cpu_interrupt_to_db(cpu_no)
{
}
+void
+m88k_db_prom_cmd(void)
+{
+ doboot();
+}
/************************/
/* COMMAND TABLE / INIT */
@@ -848,6 +853,7 @@ struct db_command db_machine_cmds[] =
{"translate", m88k_db_translate, 0, 0},
{"cmmucfg", m88k_db_cmmucfg, 0, 0},
{"where", m88k_db_where, 0, 0},
+ {"prom", m88k_db_prom_cmd, 0, 0},
{(char *) 0,}
};
@@ -857,9 +863,7 @@ struct db_command db_machine_cmds[] =
void
kdb_init()
{
-#ifdef DB_MACHINE_COMMANDS
db_machine_commands_install(db_machine_cmds);
-#endif
ddb_init();
db_printf("ddb enabled\n");