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

Method init

os/src/mm/frame_allocator.rs:48–52  ·  view source on GitHub ↗
(&mut self, l: PhysPageNum, r: PhysPageNum)

Source from the content-addressed store, hash-verified

46
47impl StackFrameAllocator {
48 pub fn init(&mut self, l: PhysPageNum, r: PhysPageNum) {
49 self.current = l.0;
50 self.end = r.0;
51 // println!("last {} Physical Frames.", self.end - self.current);
52 }
53}
54impl FrameAllocator for StackFrameAllocator {
55 fn new() -> Self {

Callers 3

rust_mainFunction · 0.45
init_frame_allocatorFunction · 0.45
init_heapFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected