diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-17 18:38:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-17 18:38:57 +0000 |
commit | 11174651160d8c3e52773f55bf7fc25f453839e5 (patch) | |
tree | faab3f27153dafa51568f157d5af87b8b146988d /testsuites/samples/minimum/init.c | |
parent | 2008-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-11174651160d8c3e52773f55bf7fc25f453839e5.tar.bz2 |
2008-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* minimum/init.c, unlimited/system.h: Add support for optionally having
a unified work area. In other words, the RTEMS Workspace and C
Program Heap are the same pool of memory.
Diffstat (limited to 'testsuites/samples/minimum/init.c')
-rw-r--r-- | testsuites/samples/minimum/init.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c index 32b91478a3..e4afcb6cae 100644 --- a/testsuites/samples/minimum/init.c +++ b/testsuites/samples/minimum/init.c @@ -78,6 +78,21 @@ rtems_task Init( #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS /* + * This configures RTEMS to use a single memory pool for the RTEMS Workspace + * and C Program Heap. If not defined, there will be separate memory pools + * for the RTEMS Workspace and C Program Heap. Having separate pools + * does haved some advantages in the event a task blows a stack or writes + * outside its memory area. However, in low memory systems the overhead of + * the two pools plus the potential for unused memory in either pool is + * very undesirable. + * + * In high memory environments, this is desirable when you want to use + * the RTEMS "unlimited" objects option. You will be able to create objects + * until you run out of memory. + */ +#define CONFIGURE_UNIFIED_WORK_AREAS + +/* * In this application, the initialization task performs the system * initialization and then transforms itself into the idle task. */ |