RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
stack.h File Reference

This header file provides interfaces of the Stack Handler which are used by the implementation and the Application Configuration. More...

#include <rtems/score/basedefs.h>

Go to the source code of this file.

Data Structures

struct  Stack_Control
 

Macros

#define STACK_MINIMUM_SIZE   CPU_STACK_MINIMUM_SIZE
 

Typedefs

typedef void(* Stack_Allocator_initialize) (size_t stack_space_size)
 The stack allocator initialization handler.
 
typedef void *(* Stack_Allocator_allocate) (size_t stack_size)
 Stack allocator allocate handler.
 
typedef void(* Stack_Allocator_free) (void *addr)
 Stack allocator free handler.
 
typedef void *(* Stack_Allocator_allocate_for_idle) (uint32_t cpu, size_t *stack_size)
 Stack allocator allocate for idle handler.
 

Functions

void _Stack_Allocator_do_initialize (void)
 Do the stack allocator initialization during system initialize.
 
void * _Stack_Allocator_allocate_for_idle_workspace (uint32_t unused, size_t *storage_size)
 Allocates the IDLE thread storage area from the workspace.
 
void * _Stack_Allocator_allocate_for_idle_static (uint32_t cpu_index, size_t *storage_size)
 Allocates the IDLE thread storage from the memory statically allocated by <rtems/confdefs.h>.
 

Variables

uint32_t rtems_minimum_stack_size
 The minimum stack size.
 
const uintptr_t _Stack_Space_size
 The configured stack space size.
 
const bool _Stack_Allocator_avoids_workspace
 Indicates if the stack allocator avoids the workspace.
 
const Stack_Allocator_initialize _Stack_Allocator_initialize
 The stack allocator initialization handler.
 
const Stack_Allocator_allocate _Stack_Allocator_allocate
 The stack allocator allocate handler.
 
const Stack_Allocator_free _Stack_Allocator_free
 The stack allocator free handler.
 
const size_t _Stack_Allocator_allocate_for_idle_storage_size
 The size in bytes of the idle thread storage area used by _Stack_Allocator_allocate_for_idle_static().
 
char _Stack_Allocator_allocate_for_idle_storage_areas []
 The thread storage areas used by _Stack_Allocator_allocate_for_idle_static().
 
const Stack_Allocator_allocate_for_idle _Stack_Allocator_allocate_for_idle
 The stack allocator allocate stack for idle thread handler.
 

Detailed Description

This header file provides interfaces of the Stack Handler which are used by the implementation and the Application Configuration.