MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / _print

Function _print

kernel/src/serial.rs:14–24  ·  view source on GitHub ↗
(args: ::core::fmt::Arguments)

Source from the content-addressed store, hash-verified

12
13#[doc(hidden)]
14pub fn _print(args: ::core::fmt::Arguments) {
15 use core::fmt::Write;
16 use x86_64::instructions::interrupts;
17
18 interrupts::without_interrupts(|| {
19 SERIAL1
20 .lock()
21 .write_fmt(args)
22 .expect("Printing to serial failed");
23 });
24}
25
26/// Prints to the host through the serial interface.
27#[macro_export]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected