Expand description

Implementation of Processor and Intersection of control flow

Here, the continuous operation of user apps in CPU is maintained, the current running state of CPU is recorded, and the replacement and transfer of control flow of different applications are executed.

Structs

PROCESSOR instance through lazy_static!

Processor management structure

Functions

Get a copy of the current task

Get the mutable reference to trap context of current task

Get token of the address space of current task

The main part of process execution and scheduling

Return to idle control flow for new scheduling

Get current task through take, leaving a None in its place