pub struct A32PTE(/* private fields */);Available on ARM only.
Expand description
An ARMv7-A Short-descriptor page table entry (32-bit).
This can represent:
- L1 Section descriptor (1MB mapping)
- L1 Page Table descriptor (points to L2 table)
- L2 Small Page descriptor (4KB mapping)
Implementations§
Source§impl A32PTE
impl A32PTE
Sourcepub const fn new_section(paddr: PhysAddr, flags: MappingFlags) -> Self
pub const fn new_section(paddr: PhysAddr, flags: MappingFlags) -> Self
Creates a Section descriptor (1MB block).
Sourcepub const fn new_small_page(paddr: PhysAddr, flags: MappingFlags) -> Self
pub const fn new_small_page(paddr: PhysAddr, flags: MappingFlags) -> Self
Creates a Small Page descriptor (4KB page).
Sourcepub const fn descriptor_type(&self) -> u32
pub const fn descriptor_type(&self) -> u32
Returns the descriptor type field.
Sourcepub const fn is_section(&self) -> bool
pub const fn is_section(&self) -> bool
Checks if this is a Section descriptor.
Trait Implementations§
Source§impl GenericPTE for A32PTE
impl GenericPTE for A32PTE
Source§fn new_page(paddr: PhysAddr, flags: MappingFlags, is_huge: bool) -> Self
fn new_page(paddr: PhysAddr, flags: MappingFlags, is_huge: bool) -> Self
Creates a page table entry point to a terminate page or block.
Source§fn new_table(paddr: PhysAddr) -> Self
fn new_table(paddr: PhysAddr) -> Self
Creates a page table entry point to a next level page table.
Source§fn flags(&self) -> MappingFlags
fn flags(&self) -> MappingFlags
Returns the flags of this entry.
Source§fn set_flags(&mut self, flags: MappingFlags, is_huge: bool)
fn set_flags(&mut self, flags: MappingFlags, is_huge: bool)
Set flags of the entry.
Source§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Returns whether this entry flag indicates present.
impl Copy for A32PTE
Auto Trait Implementations§
impl Freeze for A32PTE
impl RefUnwindSafe for A32PTE
impl Send for A32PTE
impl Sync for A32PTE
impl Unpin for A32PTE
impl UnwindSafe for A32PTE
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more