FreeRTOS-Kernel/portable/ThirdParty/GCC
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
..
ARC_EM_HS CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARC_v1 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ARM_TFM tf-m: Update tf-m to TF-Mv2.0.0 release (#1038) 2024-04-18 17:55:14 +05:30
ATmega Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Posix POSIX Port: Round up stack sizes correctly on macOS 2024-10-20 10:21:10 -07:00
RISC-V Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
RP2040 Update README.md (#1094) 2024-06-24 17:10:51 +05:30
Xtensa_ESP32 Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00