/// Allocate a new (4KiB) page and map it.
Allocate a new (4KiB) page and map it.
Allocate a new ( 4KiB ) page and map it .
fn new_page(&mut self) -> Option<paging::PTEntry> {
        let kcb = kcb::get_kcb();
        let mut fmanager = kcb.mem_manager();
        fmanager
            .allocate_base_page()
            .map(|frame| {
                paging::PTEntry::new(
                    frame.base,
                    paging::PTFlags::P | paging::PTFlags::RW | paging::PTFlags::US,
                )
            })
            .ok()
    }
fn new_page ( & mut self ) -> Option < paging :: PTEntry > { let kcb = kcb :: get_kcb ( ) ; let mut fmanager = kcb . mem_manager ( ) ; fmanager . allocate_base_page ( ) . map ( | frame | { paging :: PTEntry :: new ( frame . base , paging :: PTFlags :: P | paging :: PTFlags :: RW | paging :: PTFlags :: US , ) } ) . ok ( ) }
Allocate a new (4KiB) page and map it.
Allocate a new ( 4KiB ) page and map it .
&mut self