Subversion Repositories Kolibri OS

Rev

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

Rev 1434 Rev 2118
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: 1434 $
8
$Revision: 2118 $
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
        mov     al,0x20  ; send End Of Interrupt signal
30
        xor     ecx, ecx
31
        out     0x20,al
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
36
        call    do_change_task
36
        call    do_change_task