pub struct BootInfo { /* private fields */ }Expand description
This struct is the boot information struct, which provides the basic information, memory map, and so on.
Implementations§
Source§impl BootInfo
impl BootInfo
Sourcepub unsafe fn put_addr(self, address: u64)
pub unsafe fn put_addr(self, address: u64)
Put the boot information to a fixed address
§Safety
This is unsafe because we need to operate the pointer.
This function is for loader only.
Sourcepub unsafe fn load(address: u64) -> Self
pub unsafe fn load(address: u64) -> Self
Load the boot infomation from an address.
§Safety
This is unsafe because we need to read from a pointer.
Sourcepub const fn framebuffer(&self) -> &Framebuffer
pub const fn framebuffer(&self) -> &Framebuffer
Get the framebuffer info.
Trait Implementations§
impl Eq for BootInfo
impl StructuralPartialEq for BootInfo
Auto Trait Implementations§
impl Freeze for BootInfo
impl RefUnwindSafe for BootInfo
impl Send for BootInfo
impl Sync for BootInfo
impl Unpin for BootInfo
impl UnsafeUnpin for BootInfo
impl UnwindSafe for BootInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more