diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-11-22 09:47:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-25 08:42:49 +0100 |
commit | 6a7e2f92b0ba7a51e01961b9aa840ab5b086115b (patch) | |
tree | 51791544c0744b65705dffc30d306f92e56b2f07 /arch/kvx | |
parent | 128161a7f88beb1e3e604807d1eefa6d11d2724e (diff) | |
download | barebox-6a7e2f92b0ba7a51e01961b9aa840ab5b086115b.tar.gz barebox-6a7e2f92b0ba7a51e01961b9aa840ab5b086115b.tar.xz |
asm-generic: move sync_caches_for_execution declaration to <asm/cache.h>
We have three architectures defining sync_caches_for_execution(). Have
them all do so in a header of the same name to allow using it in common
code later on, like in an EFI image loading routine.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211122084732.2597109-8-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/kvx')
-rw-r--r-- | arch/kvx/include/asm/cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/kvx/include/asm/cache.h b/arch/kvx/include/asm/cache.h index 0bf3c8f06e..72de5d804f 100644 --- a/arch/kvx/include/asm/cache.h +++ b/arch/kvx/include/asm/cache.h @@ -10,6 +10,7 @@ void invalidate_dcache_range(unsigned long addr, unsigned long stop); +#define sync_caches_for_execution sync_caches_for_execution static inline void sync_caches_for_execution(void) { __builtin_kvx_fence(); @@ -28,4 +29,6 @@ static inline void dcache_inval(void) __builtin_kvx_dinval(); } +#include <asm-generic/cache.h> + #endif /* __KVX_CACHE_H */ |