fix bug in sbi_shutdown
This commit is contained in:
parent
80503e80ee
commit
56d3444fc6
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,6 @@ pub fn console_getchar() -> 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!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue