diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-09-17 19:55:37 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-09-17 19:55:37 +0000 |
commit | 57960caf83bdc7fd8bd65fed2df8620e0fc06001 (patch) | |
tree | e5cd3508a52aed6ba5397c3a6a3d9b9fb38f0802 /sys/arch/i386/stand | |
parent | ca49c90ae40671801763777b986e63d599925c7b (diff) |
regs command is MD
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/boot/cmd.c | 17 | ||||
-rw-r--r-- | sys/arch/i386/stand/libsa/cmd_i386.c | 11 |
2 files changed, 11 insertions, 17 deletions
diff --git a/sys/arch/i386/stand/boot/cmd.c b/sys/arch/i386/stand/boot/cmd.c index 4457f9fe190..55d8751c246 100644 --- a/sys/arch/i386/stand/boot/cmd.c +++ b/sys/arch/i386/stand/boot/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.31 1997/09/02 21:02:15 mickey Exp $ */ +/* $OpenBSD: cmd.c,v 1.32 1997/09/17 19:55:34 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -34,7 +34,6 @@ #include <sys/param.h> #include <libsa.h> -#include <debug.h> #include <sys/reboot.h> #include "cmd.h" @@ -48,9 +47,6 @@ static int Xdevice __P((void)); #ifdef DEBUG static int Xdebug __P((void)); #endif -#ifdef DUMP_REGS -static int Xregs __P((void)); -#endif static int Xhelp __P((void)); static int Ximage __P((void)); static int Xls __P((void)); @@ -86,9 +82,6 @@ static const struct cmd_table cmd_table[] = { {"machine",CMDT_MDC, Xmachine}, #endif {"reboot", CMDT_CMD, Xreboot}, -#ifdef DUMP_REGS - {"regs", CMDT_CMD, Xregs}, -#endif {"set", CMDT_SET, Xset}, {"time", CMDT_CMD, Xtime}, {NULL, 0}, @@ -609,11 +602,3 @@ Xreboot() return 0; /* just in case */ } -#ifdef DUMP_REGS -static int -Xregs() -{ - DUMP_REGS; - return 0; -} -#endif diff --git a/sys/arch/i386/stand/libsa/cmd_i386.c b/sys/arch/i386/stand/libsa/cmd_i386.c index 04f0378d848..56e787c4beb 100644 --- a/sys/arch/i386/stand/libsa/cmd_i386.c +++ b/sys/arch/i386/stand/libsa/cmd_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd_i386.c,v 1.5 1997/09/03 04:32:44 weingart Exp $ */ +/* $OpenBSD: cmd_i386.c,v 1.6 1997/09/17 19:55:36 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff, Tobias Weingartner @@ -34,14 +34,17 @@ #include <sys/param.h> #include <machine/biosvar.h> +#include "debug.h" #include "biosdev.h" #include "libsa.h" #include <cmd.h> static int Xdiskinfo __P((void)); +static int Xregs __P((void)); const struct cmd_table cmd_machine[] = { { "diskinfo", CMDT_CMD, Xdiskinfo }, + { "regs", CMDT_CMD, Xregs }, { NULL, 0 } }; @@ -60,3 +63,9 @@ Xdiskinfo() return 0; } +static int +Xregs() +{ + DUMP_REGS; + return 0; +} |