diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-08 09:42:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-15 08:37:12 +0200 |
commit | 69aa33490b1cd357519ab70b15ad150e11bb752e (patch) | |
tree | 8aa1ac3807bfe65ae1157629d0ad21548c35a5cb /cpukit/rtems/include/rtems/rtems/tasks.h | |
parent | score: Static scheduler configuration (diff) | |
download | rtems-69aa33490b1cd357519ab70b15ad150e11bb752e.tar.bz2 |
score: Simplify thread control initialization
The thread control block contains fields that point to application
configuration dependent memory areas, like the scheduler information,
the API control blocks, the user extension context table, the RTEMS
notepads and the Newlib re-entrancy support. Account for these areas in
the configuration and avoid extra workspace allocations for these areas.
This helps also to avoid heap fragementation and reduces the per thread
memory due to a reduced heap allocation overhead.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/tasks.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/tasks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h index 263cc531d9..56dd12d7f0 100644 --- a/cpukit/rtems/include/rtems/rtems/tasks.h +++ b/cpukit/rtems/include/rtems/rtems/tasks.h @@ -574,7 +574,7 @@ typedef struct { * * @note MUST BE LAST ENTRY. */ - uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ]; + uint32_t Notepads[ RTEMS_ZERO_LENGTH_ARRAY ]; } RTEMS_API_Control; /** |