diff options
author | joerg <joerg@FreeBSD.org> | 1995-06-25 13:57:55 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-06-25 13:57:55 +0000 |
commit | 87e25e6d46b4141648d5cd7596c8243b1edb4a5e (patch) | |
tree | 56e17cf89bfe3609231d568a1faae02ab79d5eff /sys/i386 | |
parent | 0aa964fdced8b1102e1162c32a4e5d497a5a7754 (diff) | |
download | FreeBSD-src-87e25e6d46b4141648d5cd7596c8243b1edb4a5e.zip FreeBSD-src-87e25e6d46b4141648d5cd7596c8243b1edb4a5e.tar.gz |
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.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/userconfig.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c index 0d16016..58d2c43c 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 <sys/param.h> @@ -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 <devname>\t\tReturn results of device probe\n"); printf("disable <devname>\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; |