]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: Implement pte_accessible()
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Sun, 28 Jan 2024 11:59:53 +0000 (12:59 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 14:56:26 +0000 (07:56 -0700)
commit50b5bae5be1b5f0a778e1b1a0a4dcda54c76cdce
tree1d19431e2d04d665979e628e377734959bbbac92
parent914e618b4372550d58a5f3a378b2255d70a1ec08
riscv: Implement pte_accessible()

Like other architectures, a pte is accessible if it is present or if
there is a pending tlb flush and the pte is protnone (which could be the
case when a pte is downgraded to protnone before a flush tlb is
executed).

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240128115953.25085-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h