Log messages to the serial atomically and rename arch::serial

Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
This commit is contained in:
Zhang Junyang
2024-06-29 11:54:01 +00:00
committed by Tate, Hongliang Tian
parent 6ff6db2167
commit 9e5f3123e1
7 changed files with 29 additions and 16 deletions

View File

@ -18,6 +18,7 @@ impl Write for VirtioConsolesPrinter {
}
}
/// Prints the formatted arguments to the standard output.
pub fn _print(args: Arguments) {
VirtioConsolesPrinter.write_fmt(args).unwrap();
}

View File

@ -2,7 +2,6 @@
#![allow(dead_code)]
pub use ostd::arch::console;
use ostd::mm::VmReader;
use spin::Once;