diff options
author | Julius Werner <jwerner@chromium.org> | 2019-11-18 13:01:06 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-19 11:26:21 +0000 |
commit | 7fc928656e791064c46a4748f86466930bdf2de6 (patch) | |
tree | a201d9efaf2a33e9a71709698ac7db0d47b92fc5 /src/arch/x86/car.ld | |
parent | ceb7e68c48eafbfa9b735842159e01e8d2123a93 (diff) | |
download | coreboot-7fc928656e791064c46a4748f86466930bdf2de6.tar.gz coreboot-7fc928656e791064c46a4748f86466930bdf2de6.tar.bz2 coreboot-7fc928656e791064c46a4748f86466930bdf2de6.zip |
lib/fmap: Disable pre-RAM cache for FSP 1.0
Due to the way CAR teardown is handled in FSP 1.0, the results of
car_get_var_ptr() aren't always reliable, which can break things when
running with FMAP cache. It might be possible to fix this but would make
the code rather complicated, so let's just disable the feature on these
platforms and hope they die out soon.
Also allow this option to be used by platforms that don't have space for
the cache and want to save a little more code.
Change-Id: I7ffb1b8b08a7ca3fe8d53dc827e2c8521da064c7
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36937
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch/x86/car.ld')
-rw-r--r-- | src/arch/x86/car.ld | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld index 972cb5234be9..36802509937d 100644 --- a/src/arch/x86/car.ld +++ b/src/arch/x86/car.ld @@ -58,7 +58,10 @@ #endif TIMESTAMP(., 0x200) + +#if !CONFIG(NO_FMAP_CACHE) FMAP_CACHE(., FMAP_SIZE) +#endif _car_ehci_dbg_info = .; /* Reserve sizeof(struct ehci_dbg_info). */ |