RTEMS 6.1-rc4
|
Macros | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR |
This configuration option is an initializer define. | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR_AVOIDS_WORK_SPACE |
This configuration option is a boolean feature define. | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR_FOR_IDLE |
This configuration option is an initializer define. | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR_INIT |
This configuration option is an initializer define. | |
#define | CONFIGURE_TASK_STACK_DEALLOCATOR |
This configuration option is an initializer define. | |
#define | CONFIGURE_TASK_STACK_FROM_ALLOCATOR |
This configuration option is an initializer define. | |
This section describes configuration options related to the task stack allocator. RTEMS allows the application or BSP to define its own allocation and deallocation methods for task stacks. This can be used to place task stacks in special areas of memory or to utilize a Memory Management Unit so that stack overflows are detected in hardware.
#define CONFIGURE_TASK_STACK_ALLOCATOR |
This configuration option is an initializer define.
The value of this configuration option initializes the stack allocator allocate handler.
_Workspace_Allocate
, which indicates that task stacks will be allocated from the RTEMS Workspace.void *( *allocate )( size_t )
.A correctly configured system shall configure the following to be consistent:
CONFIGURE_TASK_STACK_ALLOCATOR
#define CONFIGURE_TASK_STACK_ALLOCATOR_AVOIDS_WORK_SPACE |
This configuration option is a boolean feature define.
In case this configuration option is defined, then the system is informed that the task stack allocator does not use the RTEMS Workspace.
#define CONFIGURE_TASK_STACK_ALLOCATOR_FOR_IDLE |
This configuration option is an initializer define.
The value of this configuration option is the address for the stack allocator allocate handler used to allocate the task storage area of each IDLE task.
The following constraints apply to this configuration option:
void *( *allocate )( uint32_t, size_t * )
.This configuration option is independent of the other thread stack allocator configuration options. It is assumed that any memory allocated for the task storage area of an IDLE task will not be from the RTEMS Workspace.
The IDLE task stack allocator may increase the size of the allocated memory area to account for the actually allocated memory area.
The
CONFIGURE_TASK_STACK_ALLOCATOR_FOR_IDLE
configuration options are mutually exclusive.
#define CONFIGURE_TASK_STACK_ALLOCATOR_INIT |
This configuration option is an initializer define.
The value of this configuration option initializes the stack allocator initialization handler.
void ( *initialize )( size_t )
or to NULL.A correctly configured system shall configure the following to be consistent:
CONFIGURE_TASK_STACK_ALLOCATOR_INIT
#define CONFIGURE_TASK_STACK_DEALLOCATOR |
This configuration option is an initializer define.
The value of this configuration option initializes the stack allocator deallocate handler.
_Workspace_Free
, which indicates that task stacks will be allocated from the RTEMS Workspace.void ( *deallocate )( void * )
.A correctly configured system shall configure the following to be consistent:
CONFIGURE_TASK_STACK_DEALLOCATOR
#define CONFIGURE_TASK_STACK_FROM_ALLOCATOR |
This configuration option is an initializer define.
The value of this configuration option is used to calculate the task stack space size.