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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | //! Text out through the board's UART. `puts_raw` is for the very first
//! line, before the MMU is on (it only does byte loads: with the MMU off
//! all memory is "device" memory, where an unaligned access faults, and
//! `core::fmt` makes no promises about that). `print!`/`println!` are for
//! after.
use ;
use Mutex;
;
static LOCK: = new;
/// One line, no formatting, safe with the MMU off.
/// The `arch` interface's text out.
/// Like `print!`, to the arm64 kernel's console.
/// Like `println!`, to the arm64 kernel's console.
/// For the fatal-exception path only: the interrupted code may have been
/// in the middle of a `println!`, holding the lock, and it will never run
/// again.
pub unsafe
|