From 9789689e41c9f560e1f0f8796485d3a68f7c2cb4 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 4 Jan 2021 12:22:57 +0100 Subject: arch/x86/car.ld: Account for FSP-T reserved area Tested - on ocp/deltalake: boots (with FSP-T). - qemu/i440fx: BUILD_TIMELESS=1 results in the same binary. Change-Id: I7e364ab039b65766eb95538db6b3507bbfbfb487 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/49084 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/arch/x86/car.ld | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/car.ld') diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld index 9f8c2ad045..63145f153e 100644 --- a/src/arch/x86/car.ld +++ b/src/arch/x86/car.ld @@ -80,13 +80,19 @@ REGION(asan_shadow, ., _shadow_size, ARCH_POINTER_ALIGN_SIZE) #endif _car_unallocated_start = .; - _car_region_end = . + CONFIG_DCACHE_RAM_SIZE - (. - _car_region_start); + _car_region_end = . + CONFIG_DCACHE_RAM_SIZE - (. - _car_region_start) + - CONFIG_FSP_T_RESERVED_SIZE; } . = _car_region_end; .car.mrc_var . (NOLOAD) : { . += CONFIG_DCACHE_RAM_MRC_VAR_SIZE; } +. = _car_region_end; +.car.fspt_reserved . (NOLOAD) : { + . += CONFIG_FSP_T_RESERVED_SIZE; +} + #if ENV_BOOTBLOCK _car_mtrr_end = .; _car_mtrr_start = _car_region_start; -- cgit v1.2.3