summaryrefslogtreecommitdiffstats
path: root/src/include/rules.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/rules.h')
-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 8cb6d86683c2..4017d37ff5de 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 */