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:
hujun5
2026-01-21 00:20:13 +08:00
committed by Xiang Xiao
parent e604bacd42
commit 66f9ced0cb
+1 -1
View File
@@ -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