#[repr(C, packed(1))]pub struct MultibootInfo {
flags: MultibootInfoFlags,
mem: MultibootInfoMem,
_pad1: [u8; 32],
mmap: MultibootInfoMmap,
_pad2: [u8; 68],
}
Expand description
all fields MUST be acquired via unsafe getters, because the MB magic and reserved bits in flags must be checked for validity before using. It does not suffice to check the corresponding present bits in the getters. Some fields are marked as padding because we don’t need them (for now)
Fields§
§flags: MultibootInfoFlags
§mem: MultibootInfoMem
§_pad1: [u8; 32]
§mmap: MultibootInfoMmap
§_pad2: [u8; 68]