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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49084 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
aaa69b621b
commit
9789689e41
|
@ -80,13 +80,19 @@
|
||||||
REGION(asan_shadow, ., _shadow_size, ARCH_POINTER_ALIGN_SIZE)
|
REGION(asan_shadow, ., _shadow_size, ARCH_POINTER_ALIGN_SIZE)
|
||||||
#endif
|
#endif
|
||||||
_car_unallocated_start = .;
|
_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_region_end;
|
||||||
.car.mrc_var . (NOLOAD) : {
|
.car.mrc_var . (NOLOAD) : {
|
||||||
. += CONFIG_DCACHE_RAM_MRC_VAR_SIZE;
|
. += CONFIG_DCACHE_RAM_MRC_VAR_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
. = _car_region_end;
|
||||||
|
.car.fspt_reserved . (NOLOAD) : {
|
||||||
|
. += CONFIG_FSP_T_RESERVED_SIZE;
|
||||||
|
}
|
||||||
|
|
||||||
#if ENV_BOOTBLOCK
|
#if ENV_BOOTBLOCK
|
||||||
_car_mtrr_end = .;
|
_car_mtrr_end = .;
|
||||||
_car_mtrr_start = _car_region_start;
|
_car_mtrr_start = _car_region_start;
|
||||||
|
|
|
@ -117,6 +117,15 @@ config FSP_CAR
|
||||||
help
|
help
|
||||||
Use FSP APIs to initialize & Tear Down the Cache-As-Ram
|
Use FSP APIs to initialize & Tear Down the Cache-As-Ram
|
||||||
|
|
||||||
|
config FSP_T_RESERVED_SIZE
|
||||||
|
hex
|
||||||
|
default 0x100 if FSP_CAR
|
||||||
|
default 0x0
|
||||||
|
help
|
||||||
|
This is the size of the area reserved by FSP-T. This is not
|
||||||
|
defined in the FSP specification but in the SOC integration
|
||||||
|
guides.
|
||||||
|
|
||||||
config FSP_M_XIP
|
config FSP_M_XIP
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
Loading…
Reference in New Issue