diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-04-07 15:20:14 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-04-08 23:22:02 +0200 |
commit | bc17cdef0d3370f10f43ef45272399e3103eb01b (patch) | |
tree | ad8ddac3dd90b72ae9d6d911d9b7ac4dd4520fdd /src/arch/x86/include | |
parent | acc599b839dff95d062883ef3a5ff6f1f9fc256c (diff) | |
download | coreboot-bc17cdef0d3370f10f43ef45272399e3103eb01b.tar.xz |
arch/x86: remove CAR global migration when postcar stage is used
When a platform is using postcar stage it's by definition not
tearing down cache-as-ram from within romstage prior to loading
ramstage. Because of this property there's no need to migrate
CAR_GLOBAL variables to cbmem.
Change-Id: I7c683e1937c3397cbbba15f0f5d4be9e624ac27f
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/19215
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/arch/x86/include')
-rw-r--r-- | src/arch/x86/include/arch/early_variables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/include/arch/early_variables.h b/src/arch/x86/include/arch/early_variables.h index a21781996e..d0cfda75aa 100644 --- a/src/arch/x86/include/arch/early_variables.h +++ b/src/arch/x86/include/arch/early_variables.h @@ -34,7 +34,7 @@ asm(".previous"); * accessed unconditionally because cbmem is never initialized until romstage * when dram comes up. */ -#if ENV_VERSTAGE || ENV_BOOTBLOCK +#if ENV_VERSTAGE || ENV_BOOTBLOCK || IS_ENABLED(CONFIG_NO_CAR_GLOBAL_MIGRATION) static inline void *car_get_var_ptr(void *var) { return var; |