summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2021-04-27 13:33:41 +1000
committerMartin Roth <martinroth@google.com>2021-04-29 15:17:43 +0000
commit6638b11e2083b431ae9c90d9ae5ff23112f4e1bd (patch)
tree0336ed9983d36738ef6faf566b667fa59a3c189f /src/soc
parent695732b0d7dd2a5f307922876c6ca91d8a486665 (diff)
downloadcoreboot-6638b11e2083b431ae9c90d9ae5ff23112f4e1bd.tar.xz
psp_verstage: make temp_stack optional
Temp stack for verstage is only needed for picasso, so make it optional in the layout file. Signed-off-by: Kangheui Won <khwon@chromium.org> Change-Id: I44196103a3531e9d01c96ab8f454c8b580fe9807 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52688 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld b/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld
index cc9ebc0827..f38682339a 100644
--- a/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld
+++ b/src/soc/amd/common/block/cpu/noncar/memlayout_psp_verstage.ld
@@ -29,7 +29,9 @@ SECTIONS
#include "memlayout_transfer_buffer.inc"
+#if defined(PSP_VERSTAGE_TEMP_STACK_START)
PSP_VERSTAGE_TEMP_STACK_END = (PSP_VERSTAGE_TEMP_STACK_START + PSP_VERSTAGE_TEMP_STACK_SIZE );
+#endif
REGION(stack, PSP_VERSTAGE_STACK_START, PSP_VERSTAGE_STACK_SIZE, 64)
PSP_VERSTAGE_STACK_BASE = _stack;