mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Refactor the API of spinlocks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
0160a85ccd
commit
c44447d54b
@ -204,7 +204,8 @@ pub fn _print(args: fmt::Arguments) {
|
||||
WRITER
|
||||
.get()
|
||||
.unwrap()
|
||||
.lock_irq_disabled()
|
||||
.disable_irq()
|
||||
.lock()
|
||||
.write_fmt(args)
|
||||
.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user