From 44a5c1b2117d3afe00c313e739a553e94063c242 Mon Sep 17 00:00:00 2001 From: Coldy Date: Tue, 12 Jan 2021 10:13:20 +0000 Subject: [PATCH] Fixed 69.4. Bug, call with PID=2 stops the system process thereby freezing the entire system! git-svn-id: svn://kolibrios.org@8534 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/debug.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/trunk/core/debug.inc b/kernel/trunk/core/debug.inc index ad53495c0b..eedbecfe62 100644 --- a/kernel/trunk/core/debug.inc +++ b/kernel/trunk/core/debug.inc @@ -83,11 +83,15 @@ debug_terminate: debug_suspend: ; in: ecx=pid ; destroys eax,ecx - cli - mov eax, ecx - call pid_to_slot - shl eax, 5 - jz .ret +; { Patch by Coldy (rev. 7125), reason: http://board.kolibrios.org/viewtopic.php?f=1&t=1712&p=75957#p75957 +; cli +; mov eax, ecx +; call pid_to_slot +; shl eax, 5 +; jz .ret + call get_debuggee_slot + jc .ret +; } End patch mov cl, [CURRENT_TASK+eax+TASKDATA.state] ; process state test cl, cl jz .1