fn init_frame_allocator(boot_info: &BootInfo) {
    let mut ba = FRAME_ALLOCATOR.lock();
    for region in boot_info.memory_map.iter() {
        if region.region_type == MemoryRegionType::Usable {
            ba.insert(region.range.start_frame_number as usize..region.range.end_frame_number as usize);
        }
    }
}
/// Init FrameAllocator and insert all 'Usable' regions from BootInfo.
Init FrameAllocator and insert all 'Usable' regions from BootInfo.
Init FrameAllocator and insert all ' Usable ' regions from BootInfo .
fn init_frame_allocator(boot_info: &BootInfo) {
    let mut ba = FRAME_ALLOCATOR.lock();
    for region in boot_info.memory_map.iter() {
        if region.region_type == MemoryRegionType::Usable {
            ba.insert(region.range.start_frame_number as usize..region.range.end_frame_number as usize);
        }
    }
}
fn init_frame_allocator ( boot_info : & BootInfo ) { let mut ba = FRAME_ALLOCATOR . lock ( ) ; for region in boot_info . memory_map . iter ( ) { if region . region_type == MemoryRegionType :: Usable { ba . insert ( region . range . start_frame_number as usize .. region . range . end_frame_number as usize ) ; } } }
Init FrameAllocator and insert all 'Usable' regions from BootInfo.
Init FrameAllocator and insert all ' Usable ' regions from BootInfo .
boot_info
&BootInfo
boot_info
&BootInfo