MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / MemoryInfo

Class MemoryInfo

kernel/src/memory.rs:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23use core::arch::asm;
24
25struct MemoryInfo {
26 boot_info: &'static BootInfo,
27
28 physical_memory_offset: VirtAddr,
29
30 /// Allocate empty frames
31 frame_allocator: MultilevelBitmapFrameAllocator,
32
33 /// Kernel page table physical address
34 kernel_l4_table: &'static mut PageTable
35}
36
37/// Store BootInfo struct and other useful things for later use
38/// This is set in the init() function and should not be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected