@@ -8,8 +8,9 @@
#ifndef _ASM_RISCV_WORD_AT_A_TIME_H
#define _ASM_RISCV_WORD_AT_A_TIME_H
-
#include <asm/asm-extable.h>
+
+#ifndef __RISCVEB__
#include <linux/bitops.h>
#include <linux/wordpart.h>
@@ -47,6 +48,14 @@ static inline unsigned long find_zero(unsigned long mask)
/* The mask we created is directly usable as a bytemask */
#define zero_bytemask(mask) (mask)
+#else /* !__RISCVEB__ */
+
+/* use the generic one for now */
+#include <asm-generic/word-at-a-time.h>
+#endif /* !__RISCVEB__ */
+
+
+
#ifdef CONFIG_DCACHE_WORD_ACCESS
/*
Use the generic word at a time code if we're running in big endian for now otherwise this doesn't work. Add better support later. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> --- arch/riscv/include/asm/word-at-a-time.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)