From 87f08bea11ecabc721e80d553ff8173c77ae19ab Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 26 Jul 2023 17:29:47 +0200 Subject: soc/amd/noncar/memlayout_x86.ld: Conditionally add fspm region Signed-off-by: Arthur Heymans Signed-off-by: Felix Held Change-Id: I1e75f29a52179b72b25092f0ffdfd91a182d6648 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76471 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld index c435cc5eae..42323f51bf 100644 --- a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld +++ b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld @@ -97,7 +97,11 @@ SECTIONS _ = ASSERT(BOOTBLOCK_END == ((BOOTBLOCK_END + 0xFFFF) & 0xFFFF0000), "Bootblock end must be 16 bit aligned"); BOOTBLOCK(BOOTBLOCK_ADDR, CONFIG_C_ENV_BOOTBLOCK_SIZE) ROMSTAGE(CONFIG_ROMSTAGE_ADDR, CONFIG_ROMSTAGE_SIZE) + +#if CONFIG(PLATFORM_USES_FSP2_0) REGION(fspm, CONFIG_FSP_M_ADDR, CONFIG_FSP_M_SIZE, 1) +#endif + #if CONFIG(VBOOT_SEPARATE_VERSTAGE) && !CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK) VERSTAGE(CONFIG_VERSTAGE_ADDR, CONFIG_VERSTAGE_SIZE) #endif -- cgit v1.2.3