[][src]Struct sunrise_bootstrap::paging::table::PagingOffDirectory

pub struct PagingOffDirectory(PageDirectory);

A directory we can modify by directly accessing physical memory because paging is off

Implementations

impl PagingOffDirectory[src]

unsafe fn init_directory(&mut self)[src]

Initializes the directory. This function does two things:

  • zero out the whole directory
  • make its last entry point to itself to enable recursive mapping

Safety

Paging must be disabled when calling this function.

Trait Implementations

impl Deref for PagingOffDirectory[src]

type Target = PageDirectory

The resulting type after dereferencing.

impl DerefMut for PagingOffDirectory[src]

impl HierarchicalTable for PagingOffDirectory[src]

impl Index<usize> for PagingOffDirectory[src]

type Output = <PageDirectory as Index<usize>>::Output

The returned type after indexing.

impl IndexMut<usize> for PagingOffDirectory[src]

impl PageDirectoryTrait for PagingOffDirectory[src]

type PageTableType = PagingOffTable

type FlusherType = NoFlush

fn get_table(
    &mut self,
    index: usize
) -> PageState<SmartHierarchicalTable<Self::PageTableType>>
[src]

Simply cast pointed frame as PageTable

fn create_table(
    &mut self,
    index: usize
) -> SmartHierarchicalTable<Self::PageTableType>
[src]

Allocates a page table, zero it and add an entry to the directory pointing to it

Auto Trait Implementations

impl RefUnwindSafe for PagingOffDirectory

impl Send for PagingOffDirectory

impl Sync for PagingOffDirectory

impl Unpin for PagingOffDirectory

impl UnwindSafe for PagingOffDirectory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.