Rev 8093 | Rev 8869 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8093 | Rev 8866 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. 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: 8093 $ |
8 | $Revision: 8866 $ |
9 | 9 | ||
10 | 10 | ||
Line 73... | Line 73... | ||
73 | sub eax, [edi+TASKDATA.counter_add] ; time stamp counter add |
73 | sub eax, [edi+TASKDATA.counter_add] ; time stamp counter add |
74 | add [edi+TASKDATA.counter_sum], eax ; counter sum |
74 | add [edi+TASKDATA.counter_sum], eax ; counter sum |
75 | ret |
75 | ret |
76 | align 4 |
76 | align 4 |
77 | updatecputimes: |
77 | updatecputimes: |
78 | mov ecx, [TASK_COUNT] |
78 | mov ecx, [thread_count] |
79 | mov edi, TASK_DATA |
79 | mov edi, TASK_DATA |
80 | .newupdate: |
80 | .newupdate: |
81 | xor eax, eax |
81 | xor eax, eax |
82 | xchg eax, [edi+TASKDATA.counter_sum] |
82 | xchg eax, [edi+TASKDATA.counter_sum] |
83 | mov [edi+TASKDATA.cpu_usage], eax |
83 | mov [edi+TASKDATA.cpu_usage], eax |