Commit da894ff1 authored by Palmer Dabbelt's avatar Palmer Dabbelt

RISC-V: __io_writes should respect the length argument

Whoops -- I must have just been being an idiot again.  Thanks to Segher
for finding the bug :).

CC: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 4fbd8d19
...@@ -250,7 +250,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr) ...@@ -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; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment