rust-kernel
Rustbelt: a hobby x86_64 kernel written in Rust
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | //! Serial port (UART 16550, COM1 at I/O port 0x3F8).
//! QEMU forwards it to your terminal with `-serial stdio`, which makes it the
//! easiest way to see kernel output without a screen.
use lazy_static;
use Mutex;
use SerialPort;
lazy_static!
/// Like `print!`, but to the serial port.
/// Like `println!`, but to the serial port. Uses "\n" (QEMU passes it through).
|