diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2021-05-05 11:35:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 11:35:39 -0700 |
commit | 114b84ba527e4308724d1a40a3c3733f7324ab86 (patch) | |
tree | efd896de340a5a552e0084cff5fbb41448e07acf /pk | |
parent | e06e62f4a488eabe76b063fd4bfa694f9079bf5e (diff) | |
download | pk-114b84ba527e4308724d1a40a3c3733f7324ab86.zip pk-114b84ba527e4308724d1a40a3c3733f7324ab86.tar.gz pk-114b84ba527e4308724d1a40a3c3733f7324ab86.tar.bz2 |
replace `spbtr` with `satp` (#241)
The LLVM IAS currently does not support the older spelling for the CSR.
Update the references to the modern name.
Diffstat (limited to 'pk')
-rw-r--r-- | pk/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -560,7 +560,7 @@ uintptr_t pk_vm_init() __map_kernel_range(KVA_START, MEM_START, mem_size, PROT_READ|PROT_WRITE|PROT_EXEC); flush_tlb(); - write_csr(sptbr, ((uintptr_t)root_page_table >> RISCV_PGSHIFT) | SATP_MODE_CHOICE); + write_csr(satp, ((uintptr_t)root_page_table >> RISCV_PGSHIFT) | SATP_MODE_CHOICE); uintptr_t kernel_stack_top = __page_alloc_assert() + RISCV_PGSIZE; |