Skip to content

Commit 4b745fa

Browse files
fkokosinskifabiobaltieri
authored andcommitted
soc/cdns/sample_controller32: align CONFIG_PRIVILEGED_STACK_SIZE
This commit aligns the value of `CONFIG_PRIVILEGED_STACK_SIZE` to the alignment specified by the value of `XCHAL_MPU_ALIGN`, which for `sample_controller32` is equal to 4096. Signed-off-by: Filip Kokosinski <[email protected]>
1 parent bc6f7d2 commit 4b745fa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025 Antmicro <www.antmicro.com>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SOC_XTENSA_SAMPLE_CONTROLLER32
5+
6+
# CONFIG_PRIVILEGED_STACK_SIZE must be aligned as specified by XCHAL_MPU_ALIGN.
7+
# For `sample_controller32`, that value is equal to 4096
8+
config PRIVILEGED_STACK_SIZE
9+
default 4096 if XTENSA_MPU
10+
11+
endif # SOC_XTENSA_SAMPLE_CONTROLLER32

0 commit comments

Comments
 (0)