Kaynağa Gözat

RISC-V: __io_writes should respect the length argument

Palmer Dabbelt 7 yıl önce
ebeveyn
işleme
7382fbdeae
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      arch/riscv/include/asm/io.h

+ 1 - 1
arch/riscv/include/asm/io.h

@@ -250,7 +250,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
 			const ctype *buf = buffer;				\
 			const ctype *buf = buffer;				\
 										\
 										\
 			do {							\
 			do {							\
-				__raw_writeq(*buf++, addr);			\
+				__raw_write ## len(*buf++, addr);		\
 			} while (--count);					\
 			} while (--count);					\
 		}								\
 		}								\
 		afence;								\
 		afence;								\