Update of /cvsroot/blob/blob/src/blob
In directory usw-pr-cvs1:/tmp/cvs-serv32181/src/blob
Modified Files:
commands.c reboot.c
Log Message:
- Move the reboot command to the library
- Put command help into terminal.c and reboot.c
Index: commands.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/commands.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- commands.c 2001/10/07 20:54:23 1.1
+++ commands.c 2001/10/07 22:36:11 1.2
@@ -29,12 +29,11 @@
#include <blob/command.h>
+#include <blob/reboot.h>
#include <blob/terminal.h>
-static char resethelp[] = "reset\n"
-"Reset terminal\n";
-
__commandlist(reset_terminal, "reset", resethelp);
+__commandlist(reboot, "reboot", reboothelp);
Index: reboot.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/reboot.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- reboot.c 2001/10/07 19:34:17 1.2
+++ reboot.c 2001/10/07 22:36:11 1.3
@@ -36,27 +36,6 @@
-static int reboot(int argc, char *argv[])
-{
- SerialOutputString("Rebooting...\n\n");
-
- msleep(500);
-
- RCSR = 0;
- RSRR = 1;
-
- /* never reached, but anyway... */
- return 0;
-}
-
-static char reboothelp[] = "reboot\n"
-"Reboot system\n";
-
-__commandlist(reboot, "reboot", reboothelp);
-
-
-
-
static int reblob(int argc, char *argv[])
{
void (*blob)(void) = (void (*)(void))BLOB_RAM_BASE;
|