From 973d02583931f0e6372298d73e6a8e2a2404d0a7 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 25 Jun 1995 13:57:55 +0000 Subject: [PATCH] Add a `reset' command to UserConfig. Our documentation does explicitly advise the users to reset the machine in case they have done bogus things (to prevent `dset' from merging the changes into /kernel), and it's also useful for machines with serial consoles that are physically in another place. --- sys/i386/i386/userconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c index 0d1601675fb2..58d2c43c5427 100644 --- a/sys/i386/i386/userconfig.c +++ b/sys/i386/i386/userconfig.c @@ -40,7 +40,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: userconfig.c,v 1.27 1995/05/08 06:14:16 jkh Exp $ + * $Id: userconfig.c,v 1.28 1995/05/30 07:59:44 rgrimes Exp $ */ #include @@ -145,7 +145,8 @@ static Cmd CmdList[] = { { "ir", set_device_irq, int_parms }, /* irq dev # */ { "l", list_devices, NULL }, /* ls, list */ { "po", set_device_ioaddr, int_parms }, /* port dev addr */ - { "pr", device_probe, dev_parms }, /* probe dev */ + { "pr", device_probe, dev_parms }, /* probe dev */ + { "res", (CmdFunc)cpu_reset, NULL }, /* reset CPU */ { "q", quitfunc, NULL }, /* quit */ #if NSCBUS > 0 { "s", list_scsi, NULL }, /* scsi */ @@ -400,6 +401,7 @@ helpfunc(CmdParm *parms) printf("probe \t\tReturn results of device probe\n"); printf("disable \tDisable device (will not be probed)\n"); printf("quit\t\t\tExit this configuration utility\n"); + printf("reset\t\t\tReset CPU\n"); printf("help\t\t\tThis message\n\n"); printf("Commands may be abbreviated to a unique prefix\n"); return 0;