C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
OS_stack_t Struct Reference

Kernel structure for maintaining thread stacks. More...

Data Fields

unsigned long stacks [OS_STACKS][OS_STACK_DWORD]
 Thread stacks.
 
uint32_t allocations
 Information about stack allocation.
 

Detailed Description

Kernel structure for maintaining thread stacks.

Kernel allocates thread stacks here. Amount and size of stacks can be configured using conf/kernel.h.

Field Documentation

◆ allocations

uint32_t OS_stack_t::allocations

Information about stack allocation.

If n-th bit is set, then n-th stack is allocated. Otherwise it is available.

◆ stacks

unsigned long OS_stack_t::stacks[OS_STACKS][OS_STACK_DWORD]

Thread stacks.