should not be so rude

master
PanQL 6 years ago
parent a0fc201695
commit 66b783de21

@ -10,18 +10,22 @@ pub fn getchar() -> char {
} }
pub fn putfmt(fmt: Arguments) { pub fn putfmt(fmt: Arguments) {
//#[cfg(feature = "nographic")] #[cfg(feature = "nographic")]
//{ {
unsafe {
COM1.force_unlock();
}
COM1.lock().write_fmt(fmt).unwrap();
}
#[cfg(not(feature = "nographic"))]
{
unsafe { unsafe {
COM1.force_unlock(); COM1.force_unlock();
} }
COM1.lock().write_fmt(fmt).unwrap(); COM1.lock().write_fmt(fmt).unwrap();
//}
//#[cfg(not(feature = "nographic"))]
//{
//unsafe { //unsafe {
//VGA_WRITER.force_unlock(); //VGA_WRITER.force_unlock();
//} //}
//VGA_WRITER.lock().write_fmt(fmt).unwrap(); //VGA_WRITER.lock().write_fmt(fmt).unwrap();
//} }
} }

Loading…
Cancel
Save