From 56d3444fc6ac07303b6806ca84c34951df9e1cfd Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Sun, 15 May 2022 12:18:39 +0800 Subject: [PATCH] fix bug in sbi_shutdown --- os/src/sbi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/src/sbi.rs b/os/src/sbi.rs index a402b91..45f2811 100644 --- a/os/src/sbi.rs +++ b/os/src/sbi.rs @@ -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!"); }