Refactor the API of spinlocks

This commit is contained in:
Cautreoxit
2024-08-09 03:32:27 +00:00
committed by Tate, Hongliang Tian
parent 0160a85ccd
commit c44447d54b
38 changed files with 345 additions and 259 deletions

View File

@ -204,7 +204,8 @@ pub fn _print(args: fmt::Arguments) {
WRITER
.get()
.unwrap()
.lock_irq_disabled()
.disable_irq()
.lock()
.write_fmt(args)
.unwrap();
}