Rev 8874 | Rev 9591 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8874 | Rev 9590 | ||
---|---|---|---|
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: 8874 $ |
8 | $Revision: 9590 $ |
9 | 9 | ||
10 | 10 | ||
Line 74... | Line 74... | ||
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, [thread_count] |
78 | mov ecx, [thread_count] |
79 | mov edi, TASK_DATA |
79 | ;mov edi, TASK_DATA |
- | 80 | mov edi, SLOT_BASE |
|
80 | .newupdate: |
81 | .newupdate: |
81 | xor eax, eax |
82 | xor eax, eax |
82 | xchg eax, [edi+TASKDATA.counter_sum] |
83 | xchg eax, [edi+TASKDATA.counter_sum] |
83 | mov [edi+TASKDATA.cpu_usage], eax |
84 | ;mov [edi+TASKDATA.cpu_usage], eax |
84 | add edi, 0x20 |
85 | ;add edi, 0x20 |
- | 86 | mov [edi+APPDATA.cpu_usage], eax |
|
- | 87 | add edi, 0x100 ;sizeof.APPDATA |
|
85 | loop .newupdate |
88 | loop .newupdate |
86 | ret |
89 | ret |
Line 87... | Line 90... | ||
87 | 90 | ||
88 | ;TODO: Надо бы убрать использование do_change_task из V86... |
91 | ;TODO: Надо бы убрать использование do_change_task из V86... |