diff --git a/ch1-dev/os/sbi/fn.shutdown.html b/ch1-dev/os/sbi/fn.shutdown.html index 094af0f4..1698952d 100644 --- a/ch1-dev/os/sbi/fn.shutdown.html +++ b/ch1-dev/os/sbi/fn.shutdown.html @@ -4,6 +4,6 @@
-

Function os::sbi::shutdown

source · []
pub fn shutdown() -> !
Expand description

use sbi call to shutdown the kernel

+

Function os::sbi::shutdown

source · []
pub fn shutdown() -> !
Expand description

use sbi call to shutdown the kernel

\ No newline at end of file diff --git a/ch1-dev/os/sbi/index.html b/ch1-dev/os/sbi/index.html index 81bfa682..8e7bd6ea 100644 --- a/ch1-dev/os/sbi/index.html +++ b/ch1-dev/os/sbi/index.html @@ -4,7 +4,7 @@
-

Module os::sbi

source · []

Constants

+

Module os::sbi

source · []

Constants

Functions

use sbi call to getchar from console (qemu uart handler)

use sbi call to putchar in console (qemu uart handler)

diff --git a/ch1-dev/src/os/sbi.rs.html b/ch1-dev/src/os/sbi.rs.html index 87e2649f..ddd16101 100644 --- a/ch1-dev/src/os/sbi.rs.html +++ b/ch1-dev/src/os/sbi.rs.html @@ -54,6 +54,7 @@ 49 50 51 +52
#![allow(unused)]
 
 use core::arch::asm;
@@ -94,6 +95,7 @@
     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() -> ! {