aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/pgtable.h
diff options
context:
space:
mode:
authorQinglin Pan <panqinglin2020@iscas.ac.cn>2022-01-27 10:48:42 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2022-02-14 16:32:42 -0800
commit677b9eb8810edc6c616a699018a83e24ed0cccab (patch)
tree4cddd519676e2bd7fef6f3de13646663b44692d9 /arch/riscv/include/asm/pgtable.h
parentriscv: mm: Control p4d's folding by pgtable_l5_enabled (diff)
downloadlinux-dev-677b9eb8810edc6c616a699018a83e24ed0cccab.tar.xz
linux-dev-677b9eb8810edc6c616a699018a83e24ed0cccab.zip
riscv: mm: Prepare pt_ops helper functions for sv57
This patch prepare some pt_ops helper functions which will be used in creating sv57 mappings during boot time. Signed-off-by: Qinglin Pan <panqinglin2020@iscas.ac.cn> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/pgtable.h')
-rw-r--r--arch/riscv/include/asm/pgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index 58fece3133e9..351cabcd528e 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -133,6 +133,8 @@ struct pt_alloc_ops {
phys_addr_t (*alloc_pmd)(uintptr_t va);
pud_t *(*get_pud_virt)(phys_addr_t pa);
phys_addr_t (*alloc_pud)(uintptr_t va);
+ p4d_t *(*get_p4d_virt)(phys_addr_t pa);
+ phys_addr_t (*alloc_p4d)(uintptr_t va);
#endif
};