aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-10-08 13:10:38 -0600
committerRaul Rangel <rrangel@chromium.org>2021-10-29 18:29:54 +0000
commit3d7b984f777be61c74ea4c1f2d18b6ca996a7e5a (patch)
tree205951401cedb14a4c0de35c17ffc441635c1f65 /src/include
parent550bdc9050eb97d1c4ddc8d6890cd1713d65ca89 (diff)
lib/cbfs: Enable cbfs_cache for x86
The reason cbfs_cache was disabled on x86 was due to the lack of .data sections in the pre-RAM stages. By using ENV_STAGE_HAS_DATA_SECTION we enable x86 to start using the cbfs_cache. We still need to add a cbfs_cache region into the memlayout for it to be enabled. BUG=b:179699789 TEST=Build guybrush and verify cbfs_cache.size == 0. Suggested-by: Julius Werner <jwerner@chromium.org> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I74434ef9250ff059e7587147b1456aeabbee33aa Reviewed-on: https://review.coreboot.org/c/coreboot/+/56577 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cbfs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index f27c60f6f5..0d8ac60375 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -111,12 +111,7 @@ int cbfs_prog_stage_load(struct prog *prog);
/*
* The shared memory pool for backing mapped CBFS files, and other CBFS allocation needs.
- * On x86 platforms, this would only be needed to transparently map compressed files, but it
- * would require a permanent CBMEM carveout to be safe to use during S3 resume. Since it's not
- * clear whether this feature is necessary or worth the wasted memory, it is currently disabled
- * but could be added behind a Kconfig later if desired.
*/
-#define CBFS_CACHE_AVAILABLE (!CONFIG(ARCH_X86))
extern struct mem_pool cbfs_cache;
/*