FreeRTOS-Kernel/portable/ThirdParty/GCC
Michael Fairman 57f9eed00d
bugfix: correct computation of stack size on Mac Posix port (#816)
Aligns the stack end to a page boundary before computing its
size, since the size depends on both the start and end.

The original change which introduced stack alignment (#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.

Also adds a typecast to the `mach_vm_round_page()` call, as
it is actually a macro which casts to `mach_vm_offset_t` and
the result here is used as a `StackType_t` pointer.

Tested on ARM64 and Intel MacOS, as well as ARM64 and Intel
Linux.  The test code included a single-task case, as well
as a case with two tasks passing queue messages.
2023-10-03 11:30:33 +05:30
..
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 CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
ATmega CI-CD Updates (#768) 2023-09-05 14:24:04 -07:00
Posix bugfix: correct computation of stack size on Mac Posix port (#816) 2023-10-03 11:30:33 +05:30
RISC-V Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
RP2040 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30
Xtensa_ESP32 Add trace hook macro for most ports (#794) 2023-09-20 16:19:42 +05:30