linux/arch/riscv
Vincent Chen 827a438156
RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap
For 32bit, the upper 32-bit of phys_addr_t will be flushed to zero
after AND with PAGE_MASK because the data type of PAGE_MASK is
unsigned long. To fix this problem, the page alignment is done by
subtracting the page offset instead of AND with PAGE_MASK.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-10-22 17:02:56 -07:00
..
configs irqchip: add a SiFive PLIC driver 2018-08-13 08:31:32 -07:00
include RISC-V: include linux/ftrace.h in asm-prototypes.h 2018-09-24 13:12:27 -07:00
kernel RISC-V: Use swiotlb on RV64 only 2018-10-22 17:02:56 -07:00
lib RISC-V: Build tishift only on 64-bit 2018-10-22 17:02:55 -07:00
mm RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap 2018-10-22 17:02:56 -07:00
Kconfig RISC-V: Select GENERIC_LIB_UMODDI3 on RV32 2018-10-22 17:02:56 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00