aboutsummaryrefslogtreecommitdiff
path: root/machine
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2021-05-05 11:35:39 -0700
committerGitHub <noreply@github.com>2021-05-05 11:35:39 -0700
commit114b84ba527e4308724d1a40a3c3733f7324ab86 (patch)
treeefd896de340a5a552e0084cff5fbb41448e07acf /machine
parente06e62f4a488eabe76b063fd4bfa694f9079bf5e (diff)
downloadpk-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 'machine')
-rw-r--r--machine/minit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/minit.c b/machine/minit.c
index cf80a98..c519926 100644
--- a/machine/minit.c
+++ b/machine/minit.c
@@ -46,7 +46,7 @@ static void mstatus_init()
// Disable paging
if (supports_extension('S'))
- write_csr(sptbr, 0);
+ write_csr(satp, 0);
}
// send S-mode interrupts and most exceptions straight to S-mode