MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / init_frame_allocator

Function init_frame_allocator

os/src/mm/frame_allocator.rs:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90pub fn init_frame_allocator() {
91 extern "C" {
92 fn ekernel();
93 }
94 FRAME_ALLOCATOR.exclusive_access().init(
95 PhysAddr::from(ekernel as usize).ceil(),
96 PhysAddr::from(MEMORY_END).floor(),
97 );
98}
99
100pub fn frame_alloc() -> Option<FrameTracker> {
101 FRAME_ALLOCATOR

Callers 1

initFunction · 0.85

Calls 4

exclusive_accessMethod · 0.80
ceilMethod · 0.80
floorMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected