summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/cpu/noncar
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block/cpu/noncar')
-rw-r--r--src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld
index 005bde093b..a542b7d6ad 100644
--- a/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld
+++ b/src/soc/amd/common/block/cpu/noncar/memlayout_x86.ld
@@ -25,6 +25,10 @@ BOOTBLOCK_ADDR = BOOTBLOCK_END - CONFIG_C_ENV_BOOTBLOCK_SIZE;
* | |
* reserved_dram_end +--------------------------------+
* | |
+ * | cbfs_cache (if reqd) |
+ * | (CBFS_CACHE_SIZE) |
+ * +--------------------------------+ VERSTAGE_ADDR + VERSTAGE_SIZE
+ * | |
* | verstage (if reqd) |
* | (VERSTAGE_SIZE) |
* +--------------------------------+ VERSTAGE_ADDR
@@ -95,6 +99,11 @@ SECTIONS
VERSTAGE(CONFIG_VERSTAGE_ADDR, CONFIG_VERSTAGE_SIZE)
#endif
+#if CONFIG_CBFS_CACHE_SIZE > 0
+ . = ALIGN(ARCH_CACHELINE_ALIGN_SIZE);
+ CBFS_CACHE(., CONFIG_CBFS_CACHE_SIZE)
+#endif
+
EARLY_RESERVED_DRAM_END(.)
#if CONFIG(PAYLOAD_PRELOAD)