pub struct BootConfig {
pub main_memory: MemoryRange,
pub main_memory_heap_offset: usize,
pub hart_stack_size: usize,
pub reserved_memory: [Option<MemoryReservedRange>; 24],
pub va_offset: usize,
}
Fields§
§main_memory: MemoryRange
Kernel 所在的内存
main_memory_heap_offset: usize
已使用的内存
hart_stack_size: usize
每核 Kernel sp 大小
reserved_memory: [Option<MemoryReservedRange>; 24]
需要提前map的内存
va_offset: usize
物理内存和虚拟内存的偏移
Trait Implementations§
Source§impl Clone for BootConfig
impl Clone for BootConfig
Source§fn clone(&self) -> BootConfig
fn clone(&self) -> BootConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BootConfig
impl RefUnwindSafe for BootConfig
impl Send for BootConfig
impl Sync for BootConfig
impl Unpin for BootConfig
impl UnwindSafe for BootConfig
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
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