summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-16 17:13:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-07-16 17:13:35 +0000
commitc2a5939f1b4ac900a18dd8c2e6f1f8f805065911 (patch)
tree4cb340c4fe77d52b0daaba8bc45732aec28e0a27 /doc
parent2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-c2a5939f1b4ac900a18dd8c2e6f1f8f805065911.tar.bz2
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* shell/confinit.t: New argument sequence for rtems_shell_init().
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog4
-rw-r--r--doc/shell/confinit.t9
2 files changed, 9 insertions, 4 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 304f86a88a..8281da8dd3 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * shell/confinit.t: New argument sequence for rtems_shell_init().
+
2008-07-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* user/barrier.t, user/clock.t, user/dpmem.t, user/msg.t, user/part.t,
diff --git a/doc/shell/confinit.t b/doc/shell/confinit.t
index bb94b608a3..4de3987323 100644
--- a/doc/shell/confinit.t
+++ b/doc/shell/confinit.t
@@ -195,17 +195,18 @@ void start_shell(void)
RTEMS_MINIMUM_STACK_SIZE * 4, /* task stack size */
100, /* task priority */
"/dev/console", /* device name */
- 0, /* initial termios cflag value */
- 0 /* run forever */
+ 0, /* run forever */
+ 1 /* wait for shell to terminate */
);
- rtems_task_suspend(RTEMS_SELF);
@}
@end smallexample
In the above example, the call to @code{rtems_shell_init}
spawns a task to run the RTEMS Shell attached to @code{/dev/console}
and executing at priority 100. The caller suspends itself and
-lets the shell take over the console device.
+lets the shell take over the console device. When the shell
+is exited by the user, then control returns to the caller.
+
@c
@c
@c