mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Update spin lock users to lock_irq_disabled()
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
ba4121cd6a
commit
78de1af348
@ -204,5 +204,10 @@ macro_rules! println {
|
||||
pub fn _print(args: fmt::Arguments) {
|
||||
use core::fmt::Write;
|
||||
|
||||
WRITER.get().unwrap().lock().write_fmt(args).unwrap();
|
||||
WRITER
|
||||
.get()
|
||||
.unwrap()
|
||||
.lock_irq_disabled()
|
||||
.write_fmt(args)
|
||||
.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user