diff options
Diffstat (limited to 'src/include/rules.h')
-rw-r--r-- | src/include/rules.h | 8 |
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 */ |