From 114b84ba527e4308724d1a40a3c3733f7324ab86 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 5 May 2021 11:35:39 -0700 Subject: 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. --- machine/minit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'machine') 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 -- cgit v1.1