Rev 7276 | Rev 8869 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7276 | Rev 8093 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. 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: 7276 $ |
8 | $Revision: 8093 $ |
9 | 9 | ||
10 | 10 | ||
Line 324... | Line 324... | ||
324 | mov [scheduler_current+ecx*4], eax |
324 | mov [scheduler_current+ecx*4], eax |
325 | .unlock_found: |
325 | .unlock_found: |
326 | pop ecx |
326 | pop ecx |
327 | spin_unlock_irqrestore SchedulerLock |
327 | spin_unlock_irqrestore SchedulerLock |
328 | .found: |
328 | .found: |
- | 329 | ; the line below assumes APPDATA is 256 bytes long and SLOT_BASE is |
|
- | 330 | ; aligned on 0x10000 |
|
329 | mov [CURRENT_TASK], bh |
331 | mov [CURRENT_TASK], bh |
330 | mov [TASK_BASE], edi |
332 | mov [TASK_BASE], edi |
331 | rdtsc ;call _rdtsc |
333 | rdtsc ;call _rdtsc |
332 | mov [edi+TASKDATA.counter_add], eax; for next using update_counters |
334 | mov [edi+TASKDATA.counter_add], eax; for next using update_counters |
333 | cmp ebx, [current_slot] |
335 | cmp ebx, [current_slot] |