RTEMS
5.0.0
|
Task stack initialization, allocation and free functions. More...
Files | |
file | stackalloc.h |
Task stack initialization, allocation and free functions. | |
file | stackalloc.c |
Stack initialization, allocation and free functions. | |
Macros | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR_INIT bsp_stack_allocate_init |
Task stack allocator initialization configuration option. | |
#define | CONFIGURE_TASK_STACK_ALLOCATOR bsp_stack_allocate |
Task stack allocator configuration option. | |
#define | CONFIGURE_TASK_STACK_DEALLOCATOR bsp_stack_free |
Task stack deallocator configuration option. | |
Functions | |
void | bsp_stack_allocate_init (size_t stack_space_size) |
Task stack allocator initialization for CONFIGURE_TASK_STACK_ALLOCATOR_INIT. | |
void * | bsp_stack_allocate (size_t size) |
Task stack allocator for CONFIGURE_TASK_STACK_ALLOCATOR. More... | |
void | bsp_stack_free (void *stack) |
Task stack free function for CONFIGURE_TASK_STACK_DEALLOCATOR. | |
Task stack initialization, allocation and free functions.
Initialize the task stack allocator with bsp_stack_initialize(). To enable the task stack allocator use the following in the system configuration:
void* bsp_stack_allocate | ( | size_t | size | ) |
Task stack allocator for CONFIGURE_TASK_STACK_ALLOCATOR.
In case the designated task stack space from bsp_stack_initialize() is completely in use the work space will be used to allocate the stack.