summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2022-10-05 13:12:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-07 10:29:53 +0200
commit16d4bd3330f796be0ab5c52bbd470c99d00b25e6 (patch)
tree70c415915e6c72b6f0b0cbd77c227e2a373aa691 /arch/riscv
parentac33f77ac47ffb2c1de4029ae1083d6f4e421e32 (diff)
downloadbarebox-16d4bd3330f796be0ab5c52bbd470c99d00b25e6.tar.gz
barebox-16d4bd3330f796be0ab5c52bbd470c99d00b25e6.tar.xz
RISC-V: cache: fix local_flush_icache_all enabling
Commit fe181ffda9 ("RISC-V: support incoherent I-Cache") added the support to handle non-coherent caches and introduced the HAS_CACHE Kconfig symbol. The symbol must be used with CONFIG_ prefixed since this is the final Kconfig symbol which can be used within the code. Fixes: fe181ffda9 ("RISC-V: support incoherent I-Cache") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20221005111214.148844-1-m.felsch@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/cache.h b/arch/riscv/include/asm/cache.h
index 9a0b9326b2..6d69ed49bd 100644
--- a/arch/riscv/include/asm/cache.h
+++ b/arch/riscv/include/asm/cache.h
@@ -8,7 +8,7 @@
static inline void local_flush_icache_all(void)
{
-#ifdef HAS_CACHE
+#ifdef CONFIG_HAS_CACHE
asm volatile ("fence.i" ::: "memory");
#endif
}