#[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: u32load_address: u32load_end_address: u32bss_end_address: u32entry_address: u32

Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.