Skip to content

Commit 9b94417

Browse files
li041AsakuraMizuCopilot
authored
fix(riscv64): enable SUM for all cores (#10)
Co-authored-by: 朝倉水希 <asakuramizu111@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fdbf401 commit 9b94417

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/riscv/init.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub fn init_trap() {
1010
fn trap_vector_base();
1111
}
1212
unsafe {
13+
#[cfg(feature = "uspace")]
14+
riscv::register::sstatus::set_sum();
1315
crate::asm::write_trap_vector_base(trap_vector_base as usize);
1416
}
1517
}

0 commit comments

Comments
 (0)