diff --git a/os/src/sbi.rs b/os/src/sbi.rs index d0bc9dc5bd658d3387c7709c9dcb41dd9e9b4405..ea0bf9457a61f7effed7de4788c31317de02b7fd 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() -> ! {