Verified macro taskCHECK_FOR_STACK_OVERFLOW.

This commit is contained in:
Tobias Reinhard 2022-11-17 09:20:21 -05:00
parent 2f0b8bc82f
commit d3bda01f16
5 changed files with 81 additions and 8 deletions

View file

@ -28,7 +28,7 @@ predicate stack_p_2(StackType_t * pxStack,
// `taskCHECK_FOR_STACK_OVERFLOW` macro on RP2040 port expects minimal stack size
ulFreeBytes >= 0 &*&
ulUsedCells >= 0 &*&
ulFreeBytes + ulUsedCells * sizeof(StackType_t) >= 3 * sizeof(StackType_t);
ulFreeBytes + ulUsedCells * sizeof(StackType_t) >= 4 * sizeof(StackType_t);
predicate unalignedRestOfStack_p(char* p, uint32_t ulUnalignedBytes) =
chars(p, ulUnalignedBytes, _);