mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: riscv/vspace: silence tracer
This commit is contained in:
parent
f32963ae74
commit
5a3f220a3e
@ -15,7 +15,7 @@ fn alloc_callback() {
|
||||
ALLOC_COUNT.fetch_add(1, core::sync::atomic::Ordering::SeqCst);
|
||||
}
|
||||
|
||||
#[cfg_attr(debug_assertions, tracer::trace_callback(log = true, callback = alloc_callback))]
|
||||
#[cfg_attr(debug_assertions, tracer::trace_callback(callback = alloc_callback))]
|
||||
pub fn alloc_page(_mapped_addr: VirtAddr) -> PhysAddr {
|
||||
let addr = RAM_ALLOCATOR.lock().alloc(PAGE_LAYOUT).expect("Failed to allocate page");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user