linux/arch/riscv/mm
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
..
Makefile RISC-V: Flush I$ when making a dirty page executable 2017-11-30 12:58:25 -08:00
cacheflush.c RISC-V: Flush I$ when making a dirty page executable 2017-11-30 12:58:25 -08:00
extable.c RISC-V: ELF and module implementation 2017-09-26 15:26:46 -07:00
fault.c mm: convert return type of handle_mm_fault() caller to vm_fault_t 2018-08-17 16:20:28 -07:00
init.c RISC-V: Add conditional macro for zone of DMA32 2018-07-04 13:53:21 -07:00
ioremap.c RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap 2018-10-22 17:02:56 -07:00