linux/arch/riscv/mm
Alexandre Ghiti edf9556472
riscv: Use accessors to page table entries instead of direct dereference
As very well explained in commit 20a004e7b0 ("arm64: mm: Use
READ_ONCE/WRITE_ONCE when accessing page tables"), an architecture whose
page table walker can modify the PTE in parallel must use
READ_ONCE()/WRITE_ONCE() macro to avoid any compiler transformation.

So apply that to riscv which is such architecture.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Acked-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20231213203001.179237-5-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-12-20 10:48:15 -08:00
..
cache-ops.c riscv: split cache ops out of dma-noncoherent.c 2023-11-07 09:37:42 -08:00
cacheflush.c RISC-V: cacheflush: Initialize CBO variables on ACPI systems 2023-10-26 09:40:34 -07:00
context.c riscv: mm: use bitmap_zero() API 2023-08-31 00:18:29 -07:00
dma-noncoherent.c riscv: split cache ops out of dma-noncoherent.c 2023-11-07 09:37:42 -08:00
extable.c riscv: extable: fix err reg writing in dedicated uaccess handler 2022-02-08 17:02:47 -08:00
fault.c riscv: Use accessors to page table entries instead of direct dereference 2023-12-20 10:48:15 -08:00
hugetlbpage.c riscv: Use accessors to page table entries instead of direct dereference 2023-12-20 10:48:15 -08:00
init.c RISC-V Patches for the 6.7 Merge Window, Part 2 2023-11-10 09:23:17 -08:00
kasan_init.c riscv: Use accessors to page table entries instead of direct dereference 2023-12-20 10:48:15 -08:00
Makefile riscv: mm: Only compile pgtable.c if MMU 2023-12-20 10:48:14 -08:00
pageattr.c riscv: Use accessors to page table entries instead of direct dereference 2023-12-20 10:48:15 -08:00
pgtable.c riscv: Use accessors to page table entries instead of direct dereference 2023-12-20 10:48:15 -08:00
physaddr.c riscv: Use PUD/P4D/PGD pages for the linear mapping 2023-04-18 20:43:04 -07:00
pmem.c RISC-V: capitalise CMO op macros 2023-11-05 09:11:23 -08:00
ptdump.c Merge patch series "Improve PTDUMP and introduce new fields" 2023-11-05 09:41:57 -08:00
tlbflush.c riscv: Improve flush_tlb_kernel_range() 2023-11-06 07:20:52 -08:00