fix ch9 && remove some warnings
This commit is contained in:
parent
1a71b071f4
commit
cd2e97b840
3 changed files with 2 additions and 15 deletions
|
@ -1,15 +1,3 @@
|
|||
/// use sbi call to putchar in console (qemu uart handler)
|
||||
pub fn console_putchar(c: usize) {
|
||||
#[allow(deprecated)]
|
||||
sbi_rt::legacy::console_putchar(c);
|
||||
}
|
||||
|
||||
/// use sbi call to getchar from console (qemu uart handler)
|
||||
pub fn console_getchar() -> usize {
|
||||
#[allow(deprecated)]
|
||||
sbi_rt::legacy::console_getchar()
|
||||
}
|
||||
|
||||
/// use sbi call to set timer
|
||||
pub fn set_timer(timer: usize) {
|
||||
sbi_rt::set_timer(timer as _);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue