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>
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user