diff --git a/os/src/sbi.rs b/os/src/sbi.rs index d0bc9dc5..ea0bf945 100644 --- a/os/src/sbi.rs +++ b/os/src/sbi.rs @@ -38,6 +38,7 @@ pub fn console_getchar() -> usize { sbi_call(SBI_CONSOLE_GETCHAR, 0, 0, 0) } +#[cfg(feature = "board_qemu")] use crate::board::QEMUExit; /// use sbi call to shutdown the kernel pub fn shutdown() -> ! {