Only one AP can start at a time

This commit is contained in:
Jeremy Soller 2016-09-01 17:08:43 -06:00
parent c74abfc8a7
commit f14569e313
4 changed files with 23 additions and 12 deletions

View file

@ -24,7 +24,8 @@ extern crate x86;
macro_rules! print {
($($arg:tt)*) => ({
use core::fmt::Write;
let _ = write!($crate::console::CONSOLE.lock(), $($arg)*);
let mut console = $crate::console::CONSOLE.lock();
let _ = write!(console, $($arg)*);
});
}