Skip to content

Commit

Permalink
riscv64: fix: use sbi-rt Reset struct for SBI shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Apr 17, 2024
1 parent f6a8711 commit 5a0202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/riscv64/kernel/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub fn shutdown(error_code: i32) -> ! {
semihosting::process::exit(error_code)
} else {
// use SBI shutdown
sbi_rt::system_reset(sbi_rt::ColdReboot, sbi_rt::NoReason);
sbi_rt::system_reset(sbi_rt::Reset, sbi_rt::NoReason);
loop {
core::hint::spin_loop();
}
Expand Down

0 comments on commit 5a0202f

Please sign in to comment.