summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-12-04 20:32:15 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-12-11 11:42:26 +0000
commit8245bd25a35466248c00bc7a4d0cf96f8391924a (patch)
tree5e3cc97038c161661fdaa0015ad37f1d73f4219c /src/include
parentad27283a3c777f288254974cac233e47d1c0005d (diff)
downloadcoreboot-8245bd25a35466248c00bc7a4d0cf96f8391924a.tar.xz
fmap: Make FMAP_CACHE mandatory if it is configured in
Now that we have a CONFIG_NO_FMAP_CACHE to completely configure out the pre-RAM FMAP cache code, there's no point in allowing the region to be optional anymore. This patch makes the section required by the linker. If a board doesn't want to provide it, it has to select NO_FMAP_CACHE. Adding FMAP_CACHE regions to a couple more targets that I think can use them but I don't know anything about... please yell if one of these is a bad idea and I should mark them NO_FMAP_CACHE instead. Change-Id: Ic7d47772ab3abfa7e3a66815c3739d0af071abc2 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37497 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/memlayout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/memlayout.h b/src/include/memlayout.h
index 56dfb6a785..e3aeec68b1 100644
--- a/src/include/memlayout.h
+++ b/src/include/memlayout.h
@@ -78,7 +78,7 @@
#define FMAP_CACHE(addr, sz) \
REGION(fmap_cache, addr, sz, 4) \
- _ = ASSERT(sz == 0 || sz >= FMAP_SIZE, \
+ _ = ASSERT(sz >= FMAP_SIZE, \
STR(FMAP does not fit in FMAP_CACHE! (sz < FMAP_SIZE)));
#if ENV_ROMSTAGE_OR_BEFORE