From f3d6ff3eb277c4e5537c0bb258f18ebbc3a734e1 Mon Sep 17 00:00:00 2001 From: Doczom Date: Sat, 8 Jan 2022 21:31:19 +0000 Subject: [PATCH] replacing TASKDATA.counter_add with APPDATA.counter_add git-svn-id: svn://kolibrios.org@9600 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sched.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/trunk/core/sched.inc b/kernel/trunk/core/sched.inc index 173e71715f..4700ee7480 100644 --- a/kernel/trunk/core/sched.inc +++ b/kernel/trunk/core/sched.inc @@ -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: