summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2018-04-17 17:33:10 -0600
committerAaron Durbin <adurbin@chromium.org>2018-04-24 14:40:16 +0000
commit1705d6546df6e56b15fa76389eafa2430afa9eb9 (patch)
tree98d15a5b223836340b67ac0da15359e774d1efd7 /src/include
parent3b16e78a9e1de3d3e03f43c69ae92fc27317bd94 (diff)
downloadcoreboot-1705d6546df6e56b15fa76389eafa2430afa9eb9.tar.xz
arch/x86: add ENV_CACHE_AS_RAM
Add ENV_CACHE_AS_RAM to indicate to compilation units if cache-as-ram is employed for that particular stage. BUG=b:72728953 Change-Id: I06dfa7afe2d967229549090d5aa95455687b0bb9 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/25716 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/rules.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/rules.h b/src/include/rules.h
index 8cb6d86683..4017d37ff5 100644
--- a/src/include/rules.h
+++ b/src/include/rules.h
@@ -253,4 +253,12 @@
#define __SIMPLE_DEVICE__
#endif
+/* x86 specific. Indicates that the current stage is running with cache-as-ram
+ * enabled from the beginning of the stage in C code. */
+#if defined(__PRE_RAM__)
+#define ENV_CACHE_AS_RAM IS_ENABLED(CONFIG_CACHE_AS_RAM)
+#else
+#define ENV_CACHE_AS_RAM 0
+#endif
+
#endif /* _RULES_H */