diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/shell/confinit.t | 9 |
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 |