diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/symbols.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/symbols.h b/src/include/symbols.h index 8786db78bd..c35e19123b 100644 --- a/src/include/symbols.h +++ b/src/include/symbols.h @@ -67,4 +67,11 @@ DECLARE_REGION(bl31) */ #define DECLARE_OPTIONAL_REGION(name) asm (".weak _" #name ", _e" #name) +/* Returns true when pre-RAM symbols are known to the linker. + * (Does not necessarily mean that the memory is accessible.) */ +static inline int preram_symbols_available(void) +{ + return !IS_ENABLED(CONFIG_CACHE_AS_RAM) || ENV_CACHE_AS_RAM; +} + #endif /* __SYMBOLS_H */ |