pub unsafe fn initialize(init_memory_map: &InitMemoryMap) {
    if INITIALIZED {
        panic!("paging already initialized");
    }

    target::arch_initialize();

    KERNEL_PAGESET = Some(Box::into_raw(
        Box::new(Pageset::new_kernel(init_memory_map))));

    assert!(kernel_pageset().lookup(initialized as usize).is_some());

    kernel_pageset().load_into_hw();

    INITIALIZED     = true;
}
/// Call this on system initialization.
Call this on system initialization.
Call this on system initialization .
pub unsafe fn initialize(init_memory_map: &InitMemoryMap) {
    if INITIALIZED {
        panic!("paging already initialized");
    }
    target::arch_initialize();
    KERNEL_PAGESET = Some(Box::into_raw(
        Box::new(Pageset::new_kernel(init_memory_map))));
    assert!(kernel_pageset().lookup(initialized as usize).is_some());
    kernel_pageset().load_into_hw();
    INITIALIZED     = true;
}
pub unsafe fn initialize ( init_memory_map : & InitMemoryMap ) { if INITIALIZED { panic ! ( " " ) ; } target :: arch_initialize ( ) ; KERNEL_PAGESET = Some ( Box :: into_raw ( Box :: new ( Pageset :: new_kernel ( init_memory_map ) ) ) ) ; assert ! ( kernel_pageset ( ) lookup ( initialized as usize ) is_some ( ) ) ; kernel_pageset ( ) . load_into_hw ( ) ; INITIALIZED = true ; }
Call this on system initialization.
Call this on system initialization .
init_memory_map
&InitMemoryMap