diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2023-12-13 21:29:58 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-12-20 10:48:12 -0800 |
commit | c30fa83b49897e708a52e122dd10616a52a4c82b (patch) | |
tree | 215c4b9d87a37bafa00fad4d43b34b4413032628 /arch/arm | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
riscv: Use WRITE_ONCE() when setting page table entries
To avoid any compiler "weirdness" when accessing page table entries which
are concurrently modified by the HW, let's use WRITE_ONCE() macro
(commit 20a004e7b017 ("arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing
page tables") gives a great explanation with more details).
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20231213203001.179237-2-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions