pub const fn new(mem_ty: PATMemoryType, page_dir_phys: u64) -> Self {
        // It's caller's responsibility to make sure page_dir_phys is properly aligned
        let mut entry = page_dir_phys | ENTRY_PRESENT;
        entry = mask_assign(entry, mem_ty.pwt as u64, 3, 0, 1);
        entry = mask_assign(entry, mem_ty.pcd as u64, 4, 0, 1);
        Self(entry)
    }
/// Make sure page_dir_phys is properly aligned
Make sure page_dir_phys is properly aligned
Make sure page_dir_phys is properly aligned
pub const fn new(mem_ty: PATMemoryType, page_dir_phys: u64) -> Self {
        // It's caller's responsibility to make sure page_dir_phys is properly aligned
        let mut entry = page_dir_phys | ENTRY_PRESENT;
        entry = mask_assign(entry, mem_ty.pwt as u64, 3, 0, 1);
        entry = mask_assign(entry, mem_ty.pcd as u64, 4, 0, 1);
        Self(entry)
    }
pub const fn new ( mem_ty : PATMemoryType , page_dir_phys : u64 ) -> Self { // It's caller's responsibility to make sure page_dir_phys is properly aligned let mut entry = page_dir_phys | ENTRY_PRESENT ; entry = mask_assign ( entry , mem_ty . pwt as u64 , 3 , 0 , 1 ) ; entry = mask_assign ( entry , mem_ty . pcd as u64 , 4 , 0 , 1 ) ; Self ( entry ) }
Make sure page_dir_phys is properly aligned
Make sure page_dir_phys is properly aligned
mem_ty
PATMemoryType
page_dir_phys
u64