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§
source§impl 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§
source§impl Clone for MultibootAddresses
impl Clone for MultibootAddresses
source§fn clone(&self) -> MultibootAddresses
fn clone(&self) -> MultibootAddresses
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more