Subversion Repositories Kolibri OS

Rev

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

Rev 5363 Rev 8869
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2012-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2012-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: 5363 $
8
$Revision: 8869 $
9
 
9
 
Line 10... Line 10...
10
; Simple implementation of timers. All timers are organized in a double-linked
10
; Simple implementation of timers. All timers are organized in a double-linked
Line 47... Line 47...
47
timer_next      dd      0
47
timer_next      dd      0
48
endg
48
endg
Line 49... Line 49...
49
 
49
 
50
; This internal function acquires the lock for the global list.
50
; This internal function acquires the lock for the global list.
51
lock_timer_list:
51
lock_timer_list:
52
        mov     edx, [CURRENT_TASK]
52
        mov     edx, [current_slot_idx]
53
@@:
53
@@:
54
        xor     eax, eax
54
        xor     eax, eax
55
        lock cmpxchg [timer_list_owner], edx
55
        lock cmpxchg [timer_list_owner], edx
56
        jz      @f
56
        jz      @f