一个简单的x86串行日志记录器,来自 https://github.com/phil-opp/blog_os/blob/post-12/src/serial.rs
作者:George Venn (Npex42)
#30 in #源代码
5KB 78 行
use x86_serial_logger::*; pub fn main() { serial_print!("Hello, World!"); let x: usize = 10; serial_print!("X = {}", x); }
~730KB ~13K SLoC