mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-05 15:19:53 +08:00
fix: TaskStatus in kernel is different from TaskStatus in user mode. This will cause [ch3_taskinfo.rs] to fail
This commit is contained in:
@@ -58,6 +58,7 @@ impl TaskControlBlock {
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
/// task status: UnInit, Ready, Running, Exited
|
||||
pub enum TaskStatus {
|
||||
UnInit,
|
||||
Ready,
|
||||
Running,
|
||||
Exited,
|
||||
|
||||
Reference in New Issue
Block a user