replacing TASKDATA.counter_add with APPDATA.counter_add
git-svn-id: svn://kolibrios.org@9600 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ef33c606ec
commit
f3d6ff3eb2
@ -68,11 +68,12 @@ endg
|
||||
|
||||
align 4
|
||||
update_counters:
|
||||
mov edi, [TASK_BASE]
|
||||
;mov edi, [TASK_BASE]
|
||||
mov esi, [current_slot]
|
||||
rdtsc
|
||||
sub eax, [edi+TASKDATA.counter_add] ; time stamp counter add
|
||||
;sub eax, [edi+TASKDATA.counter_add] ; time stamp counter add
|
||||
;add [edi+TASKDATA.counter_sum], eax ; counter sum
|
||||
sub eax, [esi-sizeof.APPDATA+APPDATA.counter_add] ; time stamp counter add
|
||||
add [esi-sizeof.APPDATA+APPDATA.counter_sum], eax ; counter sum
|
||||
ret
|
||||
align 4
|
||||
@ -337,7 +338,8 @@ proc find_next_task
|
||||
mov byte [current_slot_idx], bh
|
||||
mov [TASK_BASE], edi
|
||||
rdtsc ;call _rdtsc
|
||||
mov [edi+TASKDATA.counter_add], eax; for next using update_counters
|
||||
mov [ebx-sizeof.APPDATA+APPDATA.counter_add], eax; for next using update_counters
|
||||
;mov [edi+TASKDATA.counter_add], eax; for next using update_counters
|
||||
cmp ebx, [current_slot]
|
||||
ret
|
||||
.task_next:
|
||||
|
Loading…
Reference in New Issue
Block a user