summaryrefslogtreecommitdiffstats
path: root/src/lib/cbfs.c
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2023-09-06 10:57:56 -0700
committerFelix Held <felix-coreboot@felixheld.de>2023-09-18 13:18:23 +0000
commitf65ae7490a8f8c1ada67902b149ac6591c21b2d1 (patch)
treef62ca90dbfde5fe3359a6bc0646e3a294c95df15 /src/lib/cbfs.c
parent4712f5d56002ec7c2e986c9d1c1914177b52c445 (diff)
downloadcoreboot-f65ae7490a8f8c1ada67902b149ac6591c21b2d1.tar.gz
coreboot-f65ae7490a8f8c1ada67902b149ac6591c21b2d1.tar.bz2
coreboot-f65ae7490a8f8c1ada67902b149ac6591c21b2d1.zip
clean-up: Remove the no more necessary `ENV_HAS_DATA_SECTION` flag
With commit b7832de0260b042c25bf8f53abcb32e20a29ae9c ("x86: Add .data section support for pre-memory stages"), the `ENV_HAS_DATA_SECTION' flag and its derivatives can now be removed from the code. Change-Id: Ic0afac76264a9bd4a9c93ca35c90bd84e9b747a2 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77291 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r--src/lib/cbfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 78eeb3bfb25d..d0a87d349c5d 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -20,12 +20,8 @@
#include <thread.h>
#include <timestamp.h>
-#if ENV_HAS_DATA_SECTION
struct mem_pool cbfs_cache =
MEM_POOL_INIT(_cbfs_cache, REGION_SIZE(cbfs_cache), CONFIG_CBFS_CACHE_ALIGN);
-#else
-struct mem_pool cbfs_cache = MEM_POOL_INIT(NULL, 0, 0);
-#endif
static void switch_to_postram_cache(int unused)
{