linux/arch/riscv/lib
Nick Hu d0e1f2110a riscv: Fix udelay in RV32.
In RV32, udelay would delay the wrong cycle. When it shifts right
"UDELAY_SHIFT" bits, it either delays 0 cycle or 1 cycle. It only works
correctly in RV64. Because the 'ucycles' always needs to be 64 bits
variable.

Signed-off-by: Nick Hu <nickhu@andestech.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
[paul.walmsley@sifive.com: fixed minor spelling error]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
2019-06-11 08:04:26 -07:00
..
delay.c riscv: Fix udelay in RV32. 2019-06-11 08:04:26 -07:00
Makefile RISC-V: lib: Fix build error for 64-bit 2018-11-12 18:09:55 -08:00
memcpy.S
memset.S
tishift.S RISC-V: lib: minor asm cleanup 2018-12-21 08:17:02 -08:00
uaccess.S RISC-V: Make our port sparse-clean 2018-06-11 09:09:49 -07:00
udivdi3.S RISC-V: lib: minor asm cleanup 2018-12-21 08:17:02 -08:00