Skip to content

Commit 483a1c7

Browse files
author
Nicolas Pitre
committed
arch: arm64: Increase stack sizes for userspace with FPU
Increase ARM64 stack sizes to accommodate deeper call stacks in userspace and SMP configurations when FPU_SHARING is enabled: - PRIVILEGED_STACK_SIZE: 1024 → 4096 bytes (with FPU_SHARING) - TEST_EXTRA_STACK_SIZE: 2048 → 4096 bytes (with FPU_SHARING) The default 1KB privileged stack is insufficient for ARM64 userspace syscalls when FPU context switching is enabled. Symptom: Userspace tests crash with Data Abort (EC 0x24) near stack boundaries during syscalls, particularly on SMP configurations where multiple threads exercise FPU lazy switching. Fixes previously failing CI test on fvp_base_revc_2xaem SMP variants: - kernel.threads.dynamic - Multiple userspace tests with FPU_SHARING enabled Signed-off-by: Nicolas Pitre <[email protected]>
1 parent 34f8675 commit 483a1c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/core/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,15 @@ config MAIN_STACK_SIZE
121121
config IDLE_STACK_SIZE
122122
default 4096
123123

124+
config PRIVILEGED_STACK_SIZE
125+
default 4096 if FPU_SHARING
126+
default 2048
127+
124128
config ISR_STACK_SIZE
125129
default 4096
126130

127131
config TEST_EXTRA_STACK_SIZE
132+
default 4096 if FPU_SHARING
128133
default 2048
129134

130135
config SYSTEM_WORKQUEUE_STACK_SIZE

0 commit comments

Comments
 (0)