Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37486 )
Change subject: rules.h: Add ENV_EARLY_RAM ......................................................................
rules.h: Add ENV_EARLY_RAM
Add a definition for environments where the x86's reset vector is in DRAM and a unique linker file must be used to coordinate regions across stages.
Change-Id: I03703ae37a835de08ad8c905bafa504bdc41e959 Signed-off-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/include/rules.h 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/37486/1
diff --git a/src/include/rules.h b/src/include/rules.h index fa60ede..1947ede 100644 --- a/src/include/rules.h +++ b/src/include/rules.h @@ -255,8 +255,10 @@ #if CONFIG(ARCH_X86) /* Indicates memory layout is determined with arch/x86/car.ld. */ #define ENV_CACHE_AS_RAM (ENV_ROMSTAGE_OR_BEFORE && !CONFIG(RESET_VECTOR_IN_RAM)) +/* Reset vector is in DRAM, and memory layout is determined by its own .ld file. */ +#define ENV_EARLY_RAM (ENV_ROMSTAGE_OR_BEFORE && CONFIG(RESET_VECTOR_IN_RAM)) /* No .data sections with execute-in-place from ROM. */ -#define ENV_STAGE_HAS_DATA_SECTION !ENV_CACHE_AS_RAM +#define ENV_STAGE_HAS_DATA_SECTION (!ENV_CACHE_AS_RAM && !ENV_EARLY_RAM) /* No .bss sections for stage with CAR teardown. */ #define ENV_STAGE_HAS_BSS_SECTION 1 #else