summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-10 07:26:54 +0000
committerbde <bde@FreeBSD.org>2006-10-10 07:26:54 +0000
commitf79090f0c4a3cd4d98c3317eb143fb7417b55e02 (patch)
treea85116de8ffcc81b9dafad7de3b1073f4959f00b /sys/powerpc
parent11fc90bf2d239d83a33478bdb65d47f47e88c7d4 (diff)
downloadFreeBSD-src-f79090f0c4a3cd4d98c3317eb143fb7417b55e02.zip
FreeBSD-src-f79090f0c4a3cd4d98c3317eb143fb7417b55e02.tar.gz
The powerpc and sparc64 MD `reboot' commands should never have existed
since they just duplicated the MI `reset' command. Instead of removing them, make `reboot' an MI alias for `reboot' since this gives a better way of killing the `r' alias for `reset'. Remove the `registers' command that was used to kill the alias. Turn the powerpc and sparc64 MD `halt' command into an MI command. A copy of sparc64/db_interface.c grew in sun4v just after I found the extra reboot commands. It has not been changed, and is now not identical. Duplicated commands come out duplicated in ddb's online help, but cause large problems when used (e.g., on i386's with 2 halt's and an hwatch, typing h doesn' give the expected message about an ambiguous command, but hangs like the halt command or a looping parseri would).
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/db_interface.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/powerpc/powerpc/db_interface.c b/sys/powerpc/powerpc/db_interface.c
index 9ea9046..a46ead6 100644
--- a/sys/powerpc/powerpc/db_interface.c
+++ b/sys/powerpc/powerpc/db_interface.c
@@ -8,7 +8,6 @@
#include <sys/cons.h>
#include <sys/kdb.h>
#include <sys/ktr.h>
-#include <sys/linker_set.h>
#include <sys/lock.h>
#include <sys/pcpu.h>
#include <sys/proc.h>
@@ -84,16 +83,3 @@ void
db_show_mdpcpu(struct pcpu *pc)
{
}
-
-/*
- * PowerPC-specific ddb commands:
- */
-DB_COMMAND(reboot, db_reboot)
-{
- cpu_reset();
-}
-
-DB_COMMAND(halt, db_halt)
-{
- cpu_halt();
-}
OpenPOWER on IntegriCloud