diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2023-12-13 21:30:01 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-12-20 10:48:15 -0800 |
commit | edf955647269422e387732870d04fc15933a25ea (patch) | |
tree | a7474d4bdd56a5c3c2c9ad3040235a076f0ac970 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | d6508999d1882ddd0db8b3b4bd7967d83e9909fa (diff) |
riscv: Use accessors to page table entries instead of direct dereference
As very well explained in commit 20a004e7b017 ("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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions