summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-17 18:50:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-06-17 18:50:30 +0000
commitbbfe59b4fda3ce1e8a8b19a6b9bede2513e6627d (patch)
treeaa25ee8b74675a43762408334a156cdf1786f6a6 /testsuites
parent2008-06-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bbfe59b4fda3ce1e8a8b19a6b9bede2513e6627d.tar.bz2
2008-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* iostream/system.h: Init task was close to blowing stack on PowerPC. * minimum/init.c: Disable Classic API Notepads.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/samples/ChangeLog5
-rw-r--r--testsuites/samples/iostream/system.h3
-rw-r--r--testsuites/samples/minimum/init.c9
3 files changed, 15 insertions, 2 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog
index dce6b08d36..9a1768909b 100644
--- a/testsuites/samples/ChangeLog
+++ b/testsuites/samples/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-17 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * iostream/system.h: Init task was close to blowing stack on PowerPC.
+ * minimum/init.c: Disable Classic API Notepads.
+
2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* minimum/init.c: Add CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION and
diff --git a/testsuites/samples/iostream/system.h b/testsuites/samples/iostream/system.h
index 4f8fb1d20a..4df2a4c70b 100644
--- a/testsuites/samples/iostream/system.h
+++ b/testsuites/samples/iostream/system.h
@@ -28,12 +28,15 @@ rtems_task Init(
/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY TRUE
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_MAXIMUM_SEMAPHORES 5
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_INIT_TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE * 2)
+#define CONFIGURE_EXTRA_TASK_STACKS RTEMS_MINIMUM_STACK_SIZE
#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c
index 8a517483e8..ff71335633 100644
--- a/testsuites/samples/minimum/init.c
+++ b/testsuites/samples/minimum/init.c
@@ -20,8 +20,6 @@ rtems_task Init(
/* initialize application */
- (void) rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &mode );
-
/* Real application would call idle loop functionality */
/* but in this case, just return and fall into a fatal error */
@@ -73,6 +71,13 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_PRIORITY 15
/*
+ * This disables Classic API Notepads and saves 16 uint32_t's of RAM
+ * per Task Control Block. If you aren't using these and are tight
+ * on RAM, this is an option.
+ */
+#define CONFIGURE_DISABLE_CLASSIC_NOTEPADS
+
+/*
* In this application, the initialization task performs the system
* initialization and then transforms itself into the idle task.
*/