fix bug in sbi_shutdown

This commit is contained in:
Yu Chen 2022-05-15 12:18:39 +08:00
parent 80503e80ee
commit 56d3444fc6

View file

@ -40,6 +40,6 @@ pub fn console_getchar() -> usize {
} }
pub fn shutdown(exit_code: usize) -> ! { pub fn shutdown(exit_code: usize) -> ! {
sbi_call(SBI_SHUTDOWN, 0, 0, 0); sbi_call(SBI_SHUTDOWN, exit_code, 0, 0);
panic!("It should shutdown!"); panic!("It should shutdown!");
} }