(args: ::core::fmt::Arguments)
| 12 | |
| 13 | #[doc(hidden)] |
| 14 | pub 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] |
nothing calls this directly
no outgoing calls
no test coverage detected