mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
Ensure each stack is properly aligned by rounding up the stack size. This is critical when CONFIG_SCHED_HPNTHREADS > 1 or CONFIG_SCHED_LPNTHREADS > 1 to ensure all thread stacks start at properly aligned addresses. Without proper alignment, subsequent threads' stacks may start at misaligned addresses, which can cause: - Hard faults on architectures with strict alignment requirements - Performance degradation due to unaligned memory access - TLS corruption when CONFIG_TLS_ALIGNED is enabled Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| kwork_cancel.c | ||
| kwork_inherit.c | ||
| kwork_notifier.c | ||
| kwork_queue.c | ||
| kwork_thread.c | ||
| Make.defs | ||
| wqueue.h | ||