pub struct PageTables {
pub bootloader: OffsetPageTable<'static>,
pub kernel: OffsetPageTable<'static>,
pub kernel_level_4_frame: PhysFrame,
}
Expand description
Provides access to the page tables of the bootloader and kernel address space.
Fields§
§bootloader: OffsetPageTable<'static>
Provides access to the page tables of the bootloader address space.
kernel: OffsetPageTable<'static>
Provides access to the page tables of the kernel address space (not active).
kernel_level_4_frame: PhysFrame
The physical frame where the level 4 page table of the kernel address space is stored.
Must be the page table that the kernel
field of this struct refers to.
This frame is loaded into the CR3
register on the final context switch to the kernel.
Auto Trait Implementations§
impl Freeze for PageTables
impl RefUnwindSafe for PageTables
impl Send for PageTables
impl Sync for PageTables
impl Unpin for PageTables
impl !UnwindSafe for PageTables
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