summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 14:37:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 14:37:06 +0000
commit52ce8e2ff81aa5144953768a1bb72aff25c90fa5 (patch)
treeb32131a72438367dce0ad516c01e015b0095dbe2
parent6bfe51205ea172063621ef7ba3634642b1f2e99e (diff)
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* init.c: Shell now has some commands that require filesystems with bdbuf support.
-rw-r--r--telnetd/ChangeLog5
-rw-r--r--telnetd/init.c25
2 files changed, 22 insertions, 8 deletions
diff --git a/telnetd/ChangeLog b/telnetd/ChangeLog
index e3016f0..6a1f14d 100644
--- a/telnetd/ChangeLog
+++ b/telnetd/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * init.c: Shell now has some commands that require filesystems with
+ bdbuf support.
+
2007-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* init.c: Test improved.
diff --git a/telnetd/init.c b/telnetd/init.c
index f57d565..b931e90 100644
--- a/telnetd/init.c
+++ b/telnetd/init.c
@@ -7,18 +7,29 @@
#define USE_RTEMS_SHELL
+/*
+ * Configuration parameters
+ */
+
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
#define CONFIGURE_MAXIMUM_PTYS 8
+
+#if defined(USE_RTEMS_SHELL)
+ #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
+#endif
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
-#define CONFIGURE_MEMORY_OVERHEAD 256
-#define CONFIGURE_MESSAGE_BUFFER_MEMORY 32 * 1024
-#define CONFIGURE_MAXIMUM_SEMAPHORES 40
-#define CONFIGURE_MAXIMUM_TASKS 20
-#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20
+#define STACK_CHECKER_ON
+
+#define CONFIGURE_MEMORY_OVERHEAD 256
+#define CONFIGURE_MESSAGE_BUFFER_MEMORY (32 * 1024)
+#define CONFIGURE_MAXIMUM_SEMAPHORES 40
+#define CONFIGURE_MAXIMUM_TASKS 20
+#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
@@ -33,8 +44,6 @@
#define CONFIGURE_MAXIMUM_DRIVERS 10
#define CONFIGURE_INIT
-#define STACK_CHECKER_ON
-
#include <stdlib.h>
#include <rtems.h>
#include <rtems/telnetd.h>
@@ -148,7 +157,7 @@ void rtemsShell(
)
{
printk("============== Starting Shell ==============\n");
- shell_shell_loop( NULL );
+ rtems_shell_main_loop( NULL );
printk("============== Exiting Shell ==============\n");
}