bootloader_x86_64_common

Struct Mappings

Source
pub struct Mappings {
Show 13 fields pub entry_point: VirtAddr, pub stack_top: VirtAddr, pub used_entries: UsedLevel4Entries, pub framebuffer: Option<VirtAddr>, pub physical_memory_offset: Option<VirtAddr>, pub recursive_index: Option<PageTableIndex>, pub tls_template: Option<TlsTemplate>, pub kernel_slice_start: PhysAddr, pub kernel_slice_len: u64, pub kernel_image_offset: VirtAddr, pub ramdisk_slice_phys_start: Option<PhysAddr>, pub ramdisk_slice_start: Option<VirtAddr>, pub ramdisk_slice_len: u64,
}
Expand description

Contains the addresses of all memory mappings set up by set_up_mappings.

Fields§

§entry_point: VirtAddr

The entry point address of the kernel.

§stack_top: VirtAddr

The (exclusive) end address of the kernel stack.

§used_entries: UsedLevel4Entries

Keeps track of used entries in the level 4 page table, useful for finding a free virtual memory when needed.

§framebuffer: Option<VirtAddr>

The start address of the framebuffer, if any.

§physical_memory_offset: Option<VirtAddr>

The start address of the physical memory mapping, if enabled.

§recursive_index: Option<PageTableIndex>

The level 4 page table index of the recursive mapping, if enabled.

§tls_template: Option<TlsTemplate>

The thread local storage template of the kernel executable, if it contains one.

§kernel_slice_start: PhysAddr

Start address of the kernel slice allocation in memory.

§kernel_slice_len: u64

Size of the kernel slice allocation in memory.

§kernel_image_offset: VirtAddr

Relocation offset of the kernel image in virtual memory.

§ramdisk_slice_phys_start: Option<PhysAddr>§ramdisk_slice_start: Option<VirtAddr>§ramdisk_slice_len: u64

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.