mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
update sr/sbi.rs for make BOARD=k210
This commit is contained in:
parent
5a73a97fab
commit
cc636058d4
@ -38,6 +38,7 @@ pub fn console_getchar() -> usize {
|
|||||||
sbi_call(SBI_CONSOLE_GETCHAR, 0, 0, 0)
|
sbi_call(SBI_CONSOLE_GETCHAR, 0, 0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "board_qemu")]
|
||||||
use crate::board::QEMUExit;
|
use crate::board::QEMUExit;
|
||||||
/// use sbi call to shutdown the kernel
|
/// use sbi call to shutdown the kernel
|
||||||
pub fn shutdown() -> ! {
|
pub fn shutdown() -> ! {
|
||||||
|
Loading…
Reference in New Issue
Block a user