Struct multiboot::header::MultibootAddresses
source · [−]#[repr(C)]pub struct MultibootAddresses {
pub header_address: u32,
pub load_address: u32,
pub load_end_address: u32,
pub bss_end_address: u32,
pub entry_address: u32,
}
Expand description
Addresses specified in the Multiboot header
If present, they must be used to load the kernel (regardless, what the ELF header says).
Fields
header_address: u32
load_address: u32
load_end_address: u32
bss_end_address: u32
entry_address: u32
Implementations
sourceimpl MultibootAddresses
impl MultibootAddresses
sourcepub fn compute_load_offset(&self, header_start: u32) -> u32
pub fn compute_load_offset(&self, header_start: u32) -> u32
Compute the offset of the load address into the binary.
Multiboot 0.6.96: section “3.1.3 The address fields of Multiboot header” says this is the “offset at which the header was found, minus (header_addr - load_addr)”.
Trait Implementations
sourceimpl Clone for MultibootAddresses
impl Clone for MultibootAddresses
sourcefn clone(&self) -> MultibootAddresses
fn clone(&self) -> MultibootAddresses
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MultibootAddresses
impl Debug for MultibootAddresses
impl Copy for MultibootAddresses
Auto Trait Implementations
impl RefUnwindSafe for MultibootAddresses
impl Send for MultibootAddresses
impl Sync for MultibootAddresses
impl Unpin for MultibootAddresses
impl UnwindSafe for MultibootAddresses
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more