mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 14:41:29 +08:00
arch: default enable TLS_ALIGNED when BUILD_PROTECTED=y
Change TLS_ALIGNED default configuration to enable when either BUILD_KERNEL or BUILD_PROTECTED is selected. Protected mode requires stack alignment to properly handle TLS data structure at stack base. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -7,7 +7,7 @@ menu "Thread Local Storage (TLS)"
|
||||
|
||||
config TLS_ALIGNED
|
||||
bool "Require stack alignment"
|
||||
default BUILD_KERNEL
|
||||
default BUILD_KERNEL || BUILD_PROTECTED
|
||||
---help---
|
||||
Aligned TLS works by fetching thread information from the beginning
|
||||
of the stack memory allocation. In order to do this, the memory
|
||||
|
||||
Reference in New Issue
Block a user