Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: correct computation of stack size on Mac Posix port
Aligns the stack end to a page boundary before computing its size, since the size depends on both the start and end. The The original change which introduced stack alignment (FreeRTOS#674) only worked for cases where the round + trunc operation would wind up within the same area, but would lead to segfaults in other cases. Tested on ARM64 and Intel MacOS, as well as ARM64 and Intel Linux. The test cases included a single-task case, as well as a case with two tasks passing queue messages.
- Loading branch information