diff --git a/os/src/task/mod.rs b/os/src/task/mod.rs index 97e76bd4..9ed25ae6 100644 --- a/os/src/task/mod.rs +++ b/os/src/task/mod.rs @@ -48,7 +48,7 @@ pub fn suspend_current_and_run_next() { pub fn block_current_task() -> *mut TaskContext { let task = take_current_task().unwrap(); let mut task_inner = task.inner_exclusive_access(); - task_inner.task_status = TaskStatus::Blocking; + task_inner.task_status = TaskStatus::Blocked; &mut task_inner.task_cx as *mut TaskContext } diff --git a/os/src/task/task.rs b/os/src/task/task.rs index c620890e..ffc5c0e0 100644 --- a/os/src/task/task.rs +++ b/os/src/task/task.rs @@ -76,5 +76,5 @@ impl TaskControlBlock { pub enum TaskStatus { Ready, Running, - Blocking, + Blocked, }