Function multiboot2::load_with_offset[][src]

pub unsafe fn load_with_offset(address: usize, offset: usize) -> BootInformation
Expand description

Load the multiboot boot information struct from an address at an offset.

Examples

use multiboot::load;

let ptr = 0xDEADBEEF as *const _;
let boot_info = load_with_offset(ptr as usize, 0xCAFEBABE);
println!("{:?}", boot_info);