diff --git a/kernel/trunk/core/debug.inc b/kernel/trunk/core/debug.inc index 2afd23c82e..cf053b0e40 100644 --- a/kernel/trunk/core/debug.inc +++ b/kernel/trunk/core/debug.inc @@ -82,7 +82,7 @@ debug_suspend: cli mov eax, ebx call pid_to_slot - test eax, eax + shl eax, 5 jz .ret mov bl, [CURRENT_TASK+eax+TASKDATA.state] ; process state test bl, bl @@ -116,7 +116,7 @@ debug_resume: cli mov eax, ebx call pid_to_slot - test eax, eax + shl eax, 5 jz .ret call do_resume .ret: sti