diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-05 16:48:25 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-09-09 22:17:27 +0000 |
commit | 6fdb223859959c5fe9392c0e5a34d6090cdeebeb (patch) | |
tree | c3923aba0fc3d9749188d426e439a89d17d0d6c9 /src/arch/arm | |
parent | 03026a2a7d4d4b87848e0074efb835306773d16a (diff) | |
download | coreboot-6fdb223859959c5fe9392c0e5a34d6090cdeebeb.tar.xz |
arch/x86: Refactor CAR_GLOBAL quirk for FSP1.0
These platforms return to romstage from FSP only after
already having torn CAR down. A copy of the entire CAR
region is available and discoverable via HOB.
Previously, CBMEM console detected on-the-fly that CAR
migration had happened and relocated cbmem_console_p
accoringlin with car_sync_var(). However, if the CAR_GLOBAL
pointing to another object inside CAR is a relative offset
instead, we have a more generic solution that can be used
with timestamps code as well.
Change-Id: Ica877b47e68d56189e9d998b5630019d4328a419
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35140
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/include/arch/early_variables.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/arm/include/arch/early_variables.h b/src/arch/arm/include/arch/early_variables.h index 9f069232a6..7002a8805e 100644 --- a/src/arch/arm/include/arch/early_variables.h +++ b/src/arch/arm/include/arch/early_variables.h @@ -18,7 +18,9 @@ static inline void *car_get_var_ptr(void *var) { return var; } #define car_get_var(var) (var) -#define car_sync_var(var) (var) #define car_set_var(var, val) do { (var) = (val); } while (0) +#define car_get_ptr car_get_var +#define car_set_ptr car_set_var + #endif |