|
|
|
@ -282,8 +282,8 @@ impl FrameDeallocator<Size4KiB> for FrameAllocatorForX86 {
|
|
|
|
|
fn flush_tlb_all(vaddr: usize) {
|
|
|
|
|
// FIXME: too slow, disable now.
|
|
|
|
|
return;
|
|
|
|
|
if !super::AP_CAN_INIT.load(Ordering::Relaxed) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
super::ipi::invoke_on_allcpu(move || tlb::flush(VirtAddr::new(vaddr as u64)), false);
|
|
|
|
|
// if !super::AP_CAN_INIT.load(Ordering::Relaxed) {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// super::ipi::invoke_on_allcpu(move || tlb::flush(VirtAddr::new(vaddr as u64)), false);
|
|
|
|
|
}
|
|
|
|
|