]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(zynqmp): make stack size configurable
authorAkshay Belsare <akshay.belsare@amd.com>
Thu, 6 Apr 2023 10:51:06 +0000 (16:21 +0530)
committerMichal Šimek <monstr@monstr.eu>
Tue, 11 Apr 2023 14:10:23 +0000 (15:10 +0100)
If PLATFORM_STACK_SIZE not already defined, use the default value of
PLATFORM_STACK_SIZE.
This makes the stack size value configurable for different interface
like custom packages.

Signed-off-by: Amit Nagal <amit.nagal@amd.com>
Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
Change-Id: I87e9fcbfb4c4092378b1ac0ff8fb6d084495d320

docs/plat/xilinx-zynqmp.rst
plat/xilinx/zynqmp/include/platform_def.h

index 81f4fbecc2c7e1ba677d31510e5178e7874fdc4a..4fe0d2f846bb6402640cbfd5aa321161156f139a 100644 (file)
@@ -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=<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 := <value>
+$(eval $(call add_define,PLATFORM_STACK_SIZE))
+
 FSBL->TF-A Parameter Passing
 ----------------------------
 
index aebce304e0ece274cea2403c9100b88e9b242c3b..fb1130ff7753eb8ea62089ce09db5e99cc138f98 100644 (file)
@@ -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)