Subversion Repositories Kolibri OS

Rev

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

Rev 2146 Rev 2167
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
;; 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: 2146 $
8
$Revision: 2167 $
9
 
9
 
10
 
10
 
Line 25... Line 25...
25
        cmp     eax,100
25
        cmp     eax,100
26
        jb      .nocounter
26
        jb      .nocounter
27
        add     [next_usage_update],100
27
        add     [next_usage_update],100
28
        call    updatecputimes
28
        call    updatecputimes
29
  .nocounter:
29
  .nocounter:
30
        xor     ecx, ecx
30
	    xor     ecx, ecx	; send End Of Interrupt signal
31
        call    irq_eoi
31
        call    irq_eoi
32
        btr     dword[DONT_SWITCH], 0
32
        btr     dword[DONT_SWITCH], 0
33
        jc      .return
33
        jc      .return
34
        call    find_next_task
34
        call    find_next_task
35
        jz      .return  ; if there is only one running process
35
        jz      .return  ; if there is only one running process