Explorar el Código

Add ASSERT_INTERRUPTS_DISABLED in Task::fromPID().

Andreas Kling hace 6 años
padre
commit
10347b9ae8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Kernel/Task.cpp

+ 1 - 0
Kernel/Task.cpp

@@ -647,6 +647,7 @@ static bool contextSwitch(Task* t)
 
 Task* Task::fromPID(pid_t pid)
 {
+    ASSERT_INTERRUPTS_DISABLED();
     for (auto* task = s_tasks->head(); task; task = task->next()) {
         if (task->pid() == pid)
             return task;