Subversion Repositories Kolibri OS

Rev

Rev 7124 | Rev 8840 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7124 Rev 8534
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 7124 $
8
$Revision: 8534 $
9
 
9
 
10
 
10
 
Line 81... Line 81...
81
        jmp     sysfn_terminate
81
        jmp     sysfn_terminate
Line 82... Line 82...
82
 
82
 
83
debug_suspend:
83
debug_suspend:
84
; in: ecx=pid
84
; in: ecx=pid
-
 
85
; destroys eax,ecx
85
; destroys eax,ecx
86
; { Patch by Coldy (rev. 7125), reason: http://board.kolibrios.org/viewtopic.php?f=1&t=1712&p=75957#p75957
86
        cli
87
;        cli
87
        mov     eax, ecx
88
;        mov     eax, ecx
88
        call    pid_to_slot
89
;        call    pid_to_slot
89
        shl     eax, 5
90
;        shl     eax, 5
-
 
91
;        jz      .ret
-
 
92
        call    get_debuggee_slot
-
 
93
        jc      .ret
90
        jz      .ret
94
; } End patch
91
        mov     cl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
95
        mov     cl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
92
        test    cl, cl
96
        test    cl, cl
93
        jz      .1
97
        jz      .1
94
        cmp     cl, 5
98
        cmp     cl, 5