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

Method new

os/src/task/processor.rs:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14impl Processor {
15 pub fn new() -> Self {
16 Self {
17 current: None,
18 idle_task_cx: TaskContext::zero_init(),
19 }
20 }
21 fn get_idle_task_cx_ptr(&mut self) -> *mut TaskContext {
22 &mut self.idle_task_cx as *mut _
23 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected