diff --git a/docs/plat/xilinx-zynqmp.rst b/docs/plat/xilinx-zynqmp.rst index 81f4fbecc..4fe0d2f84 100644 --- a/docs/plat/xilinx-zynqmp.rst +++ b/docs/plat/xilinx-zynqmp.rst @@ -89,6 +89,16 @@ the build command example is; make CROSS_COMPILE=aarch64-none-elf- PLAT=zynqmp RESET_TO_BL31=1 DEBUG=1 \ ZYNQMP_ATF_MEM_BASE=0x40000 ZYNQMP_ATF_MEM_SIZE= +Configurable Stack Size +----------------------- + +The stack size in TF-A for ZynqMP platform is configurable. +The custom package can define the desired stack size as per the requirement in +the make file as follows, + +PLATFORM_STACK_SIZE := +$(eval $(call add_define,PLATFORM_STACK_SIZE)) + FSBL->TF-A Parameter Passing ---------------------------- diff --git a/plat/xilinx/zynqmp/include/platform_def.h b/plat/xilinx/zynqmp/include/platform_def.h index aebce304e..fb1130ff7 100644 --- a/plat/xilinx/zynqmp/include/platform_def.h +++ b/plat/xilinx/zynqmp/include/platform_def.h @@ -21,7 +21,9 @@ ******************************************************************************/ /* Size of cacheable stacks */ +#ifndef PLATFORM_STACK_SIZE #define PLATFORM_STACK_SIZE 0x440 +#endif #define PLATFORM_CORE_COUNT U(4) #define PLAT_NUM_POWER_DOMAINS U(5)