mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 16:13:27 +00:00
Make ostd::trap::irq
public
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
751e0b2ebf
commit
b96c8f9ed2
@ -296,7 +296,7 @@ impl GlobalHeapAllocator for HeapAllocator {
|
||||
return HeapSlot::alloc_large(layout.size().div_ceil(PAGE_SIZE) * PAGE_SIZE);
|
||||
};
|
||||
|
||||
let irq_guard = trap::disable_local();
|
||||
let irq_guard = trap::irq::disable_local();
|
||||
let this_cache = LOCAL_POOL.get_with(&irq_guard);
|
||||
let mut local_cache = this_cache.borrow_mut();
|
||||
|
||||
@ -309,7 +309,7 @@ impl GlobalHeapAllocator for HeapAllocator {
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
let irq_guard = trap::disable_local();
|
||||
let irq_guard = trap::irq::disable_local();
|
||||
let this_cache = LOCAL_POOL.get_with(&irq_guard);
|
||||
let mut local_cache = this_cache.borrow_mut();
|
||||
|
||||
|
Reference in New Issue
Block a user