From c09d4af850ff8b502b5efd4de1aac39fcbc63618 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 29 Mar 2021 16:54:09 -0700 Subject: M-mode code doesn't need access to pk's page table --- pk/mmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pk') diff --git a/pk/mmap.c b/pk/mmap.c index a19b9a6..97df4e4 100644 --- a/pk/mmap.c +++ b/pk/mmap.c @@ -24,6 +24,8 @@ typedef struct vmr_t { static vmr_t* vmr_freelist_head; +static pte_t* root_page_table; + #define RISCV_PGLEVELS ((VA_BITS - RISCV_PGSHIFT) / RISCV_PGLEVEL_BITS) static spinlock_t vm_lock = SPINLOCK_INIT; -- cgit v1.1