summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-19 19:32:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-19 19:32:47 +0000
commit49145cfe1d688c32f3b482d51f0194cafebd1af0 (patch)
tree3e3fb72e30f967a1080e7ce67a6e842c8c89fc0a /sys
parent194ec2ac183e92677470f2f7e488b0327aac167d (diff)
Remove ddb machine commands, they are already available as "bo ha" and "bo re".
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/alpha/db_interface.c53
-rw-r--r--sys/arch/alpha/include/db_machdep.h4
2 files changed, 2 insertions, 55 deletions
diff --git a/sys/arch/alpha/alpha/db_interface.c b/sys/arch/alpha/alpha/db_interface.c
index 8056c1f83d1..b600fcd8848 100644
--- a/sys/arch/alpha/alpha/db_interface.c
+++ b/sys/arch/alpha/alpha/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.14 2002/03/14 01:26:26 millert Exp $ */
+/* $OpenBSD: db_interface.c,v 1.15 2003/02/19 19:32:44 miod Exp $ */
/* $NetBSD: db_interface.c,v 1.8 1999/10/12 17:08:57 jdolecek Exp $ */
/*
@@ -81,15 +81,6 @@ extern int trap_types;
int db_active = 0;
-void db_mach_halt(db_expr_t, int, db_expr_t, char *);
-void db_mach_reboot(db_expr_t, int, db_expr_t, char *);
-
-struct db_command db_machine_cmds[] = {
- { "halt", db_mach_halt, 0, 0 },
- { "reboot", db_mach_reboot, 0, 0 },
- { (char *)0, },
-};
-
struct db_variable db_regs[] = {
{ "v0", &ddb_regs.tf_regs[FRAME_V0], FCN_NULL },
{ "t0", &ddb_regs.tf_regs[FRAME_T0], FCN_NULL },
@@ -221,48 +212,6 @@ Debugger()
}
/*
- * This is called before ddb_init() to install the
- * machine-specific command table. (see machdep.c)
- */
-void
-db_machine_init()
-{
-
-#if 0
- db_machine_commands_install(db_machine_cmds);
-#endif
-}
-
-/*
- * Alpha-specific ddb commands:
- *
- * halt set halt bit in rpb and halt
- * reboot set reboot bit in rpb and halt
- */
-
-void
-db_mach_halt(addr, have_addr, count, modif)
- db_expr_t addr;
- int have_addr;
- db_expr_t count;
- char * modif;
-{
-
- prom_halt(1);
-}
-
-void
-db_mach_reboot(addr, have_addr, count, modif)
- db_expr_t addr;
- int have_addr;
- db_expr_t count;
- char * modif;
-{
-
- prom_halt(0);
-}
-
-/*
* Map Alpha register numbers to trapframe/db_regs_t offsets.
*/
static int reg_to_frame[32] = {
diff --git a/sys/arch/alpha/include/db_machdep.h b/sys/arch/alpha/include/db_machdep.h
index 7d6941f3287..8ba1a0e6841 100644
--- a/sys/arch/alpha/include/db_machdep.h
+++ b/sys/arch/alpha/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.13 2002/03/14 01:26:27 millert Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.14 2003/02/19 19:32:46 miod Exp $ */
/*
* Copyright (c) 1997 Niklas Hallqvist. All rights reserverd.
@@ -35,8 +35,6 @@
/* XXX - Need to include vm.h for boolean_t */
#include <uvm/uvm_extern.h>
-#define DB_MACHINE_COMMANDS
-
/*
* We use Elf64 symbols in DDB.
*/