distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
Functions | |
void * | adjustStorage (void *const storage, const size_t alignment) |
Adjusts storage's address to suit architecture's alignment requirements. More... | |
size_t | adjustSize (void *const storage, const size_t size, void *const adjustedStorage, const size_t alignment) |
Adjusts storage's size to suit architecture's alignment requirements. More... | |
Variables | |
constexpr size_t | stackAlignment {DISTORTOS_ARCHITECTURE_STACK_ALIGNMENT} |
alignment of stack, bytes More... | |
constexpr uint32_t | stackSentinel {0xed419f25} |
sentinel used for stack usage/overflow detection More... | |
size_t distortos::internal::anonymous_namespace{Stack.cpp}::adjustSize | ( | void *const | storage, |
const size_t | size, | ||
void *const | adjustedStorage, | ||
const size_t | alignment | ||
) |
Adjusts storage's size to suit architecture's alignment requirements.
[in] | storage | is a pointer to stack's storage |
[in] | size | is the size of stack's storage, bytes |
[in] | adjustedStorage | is an adjusted storage's address |
[in] | alignment | is the required stack alignment, bytes |
void* distortos::internal::anonymous_namespace{Stack.cpp}::adjustStorage | ( | void *const | storage, |
const size_t | alignment | ||
) |
Adjusts storage's address to suit architecture's alignment requirements.
[in] | storage | is a pointer to stack's storage |
[in] | alignment | is the required stack alignment, bytes |
constexpr size_t distortos::internal::anonymous_namespace{Stack.cpp}::stackAlignment {DISTORTOS_ARCHITECTURE_STACK_ALIGNMENT} |
alignment of stack, bytes
constexpr uint32_t distortos::internal::anonymous_namespace{Stack.cpp}::stackSentinel {0xed419f25} |
sentinel used for stack usage/overflow detection