Skip to content

Commit 7a9aa06

Browse files
committed
Allow writing directly to satp register
1 parent 95c5234 commit 7a9aa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/register/satp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum Mode {
8787
}
8888

8989
read_csr_as!(Satp, 0x180, __read_satp);
90-
write_csr!(0x180, __write_satp);
90+
write_csr_as_usize!(0x180, __write_satp);
9191

9292
#[inline]
9393
#[cfg(riscv32)]

0 commit comments

Comments
 (0)