Subversion Repositories Kolibri OS

Rev

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

Rev 8869 Rev 8874
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 8869 $
8
$Revision: 8874 $
9
 
9
 
10
 
10
 
Line 307... Line 307...
307
        cmp     eax, [ebx+APPDATA.wait_timeout]
307
        cmp     eax, [ebx+APPDATA.wait_timeout]
308
        jb      .task_next
308
        jb      .task_next
309
        xor     eax, eax
309
        xor     eax, eax
310
@@:
310
@@:
311
        mov     [ebx+APPDATA.wait_param], eax  ; retval for wait
311
        mov     [ebx+APPDATA.wait_param], eax  ; retval for wait
312
        mov     [edi+TASKDATA.state], 0
312
        mov     [edi+TASKDATA.state], TSTATE_RUNNING
313
.task_found:
313
.task_found:
314
        mov     [scheduler_current+ecx*4], ebx
314
        mov     [scheduler_current+ecx*4], ebx
315
; If we have selected a thread with higher priority
315
; If we have selected a thread with higher priority
316
; AND rescheduling is due to IRQ,
316
; AND rescheduling is due to IRQ,
317
; turn the current scheduler list one entry back,
317
; turn the current scheduler list one entry back,