RTEMS 6.3
Loading...
Searching...
No Matches
Task Stack Allocator

Task stack initialization, allocation and free functions. More...

Files

file  bsps/include/bsp/stackalloc.h
 Task stack initialization, allocation and free functions.
file  bsps/shared/start/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.
void bsp_stack_free (void *stack)
 Task stack free function for CONFIGURE_TASK_STACK_DEALLOCATOR.

Detailed Description

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:

#include <bsp/stackalloc.h>
#define CONFIGURE_INIT
#include <confdefs.h>
This header file evaluates the application configuration options defined by the application.
Task stack initialization, allocation and free functions.

Function Documentation

◆ bsp_stack_allocate()

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.