SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack Class Reference

Storage bundle for the exit trap: a Stack descriptor paired with its backing memory. More...

#include <stk.h>

Collaboration diagram for stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack:

Public Types

typedef ExitTrapStackMemory::MemoryType Memory

Public Attributes

Stack stack
 Stack descriptor (SP register value + access mode). Initialised by InitTraps() on every Start().
Memory memory
 Backing stack memory array. Size: STACK_SIZE_MIN elements of Word.

Detailed Description

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
class stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack

Storage bundle for the exit trap: a Stack descriptor paired with its backing memory.

Note
The exit trap executes when all user tasks have exited (KERNEL_DYNAMIC only), restoring the CPU context to the point immediately after IKernel::Start() was called so the application can continue after scheduling ends.
Allocated only in KERNEL_DYNAMIC mode (zero-size otherwise, via STK_ALLOCATE_COUNT).

Definition at line 1975 of file stk.h.

Member Typedef Documentation

◆ Memory

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
typedef ExitTrapStackMemory::MemoryType stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack::Memory

Definition at line 1977 of file stk.h.

Member Data Documentation

◆ memory

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
Memory stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack::memory

Backing stack memory array. Size: STACK_SIZE_MIN elements of Word.

Definition at line 1980 of file stk.h.

Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::InitTraps().

◆ stack

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
Stack stk::Kernel< TMode, TSize, TStrategy, TPlatform >::ExitTrapStack::stack

Stack descriptor (SP register value + access mode). Initialised by InitTraps() on every Start().

Definition at line 1979 of file stk.h.

Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::InitTraps().


The documentation for this class was generated from the following file: