FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix
Paul Hollinsky f9f0208daa POSIX Port: Round up stack sizes correctly on macOS
On macOS, pthread_attr_setstacksize requires the stack size to be a multiple of
the system page size.

The previous changes here assumed the use of pthread_attr_setstack, however
the transition to pthread_attr_setstacksize means we can avoid rounding the
pxEndOfStack pointer.

This is additionally positive because pxEndOfStack was actually being rounded
in the wrong direction -- it ought to have been rounded down (_trunc) instead of
up due to the stack growth direction. In my case this actually caused pxEndOfStack
to end up after pxTopOfStack, which underflowed and created a huge stack size
request + EXC_BAD_ACCESS in pthread_create.

Signed-off-by: Paul Hollinsky <paulhollinsky@gmail.com>
2024-10-20 10:21:10 -07:00
..
utils event_create(): check malloc() return value to be non-NULL (#1084) 2024-06-07 13:47:13 +05:30
FreeRTOS-simulator-for-Linux.url Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
port.c POSIX Port: Round up stack sizes correctly on macOS 2024-10-20 10:21:10 -07:00
portmacro.h Fix small bugs in Kernel (#998) 2024-02-20 22:19:41 +05:30