diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-03-29 16:54:09 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2021-03-29 16:58:17 -0700 |
commit | c09d4af850ff8b502b5efd4de1aac39fcbc63618 (patch) | |
tree | 90bec479c44091334db0f5ab46775b84c22d285c /pk | |
parent | fe486e5c8555dd199061ad42f56d748b74704e97 (diff) | |
download | pk-c09d4af850ff8b502b5efd4de1aac39fcbc63618.zip pk-c09d4af850ff8b502b5efd4de1aac39fcbc63618.tar.gz pk-c09d4af850ff8b502b5efd4de1aac39fcbc63618.tar.bz2 |
M-mode code doesn't need access to pk's page table
Diffstat (limited to 'pk')
-rw-r--r-- | pk/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |