Subversion Repositories Kolibri OS

Rev

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

Rev 667 Rev 680
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 667 $
8
$Revision: 680 $
9
 
9
 
10
 
10
 
Line 80... Line 80...
80
; in: ebx=pid
80
; in: ebx=pid
81
; destroys eax,ebx
81
; destroys eax,ebx
82
        cli
82
        cli
83
        mov     eax, ebx
83
        mov     eax, ebx
84
        call    pid_to_slot
84
        call    pid_to_slot
85
        test    eax, eax
85
        shl     eax, 5
86
        jz      .ret
86
        jz      .ret
87
        mov     bl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
87
        mov     bl, [CURRENT_TASK+eax+TASKDATA.state] ; process state
88
	test	bl, bl
88
	test	bl, bl
89
	jz	.1
89
	jz	.1
90
	cmp	bl, 5
90
	cmp	bl, 5
Line 114... Line 114...
114
; in: ebx=pid
114
; in: ebx=pid
115
; destroys eax,ebx
115
; destroys eax,ebx
116
        cli
116
        cli
117
        mov     eax, ebx
117
        mov     eax, ebx
118
        call    pid_to_slot
118
        call    pid_to_slot
119
        test    eax, eax
119
        shl     eax, 5
120
        jz      .ret
120
        jz      .ret
121
        call    do_resume
121
        call    do_resume
122
.ret:	sti
122
.ret:	sti
123
	ret
123
	ret