Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9931 → Rev 9932

/kernel/trunk/core/taskman.inc
398,7 → 398,7
 
mov edi, [tmp_task_ptab]
stdcall map_page, edi, eax, PG_SWR
mov ecx, 1024
mov ecx, PAGE_SIZE/4
xor eax, eax
rep stosd
 
1086,14 → 1086,14
mov ebx, [thread_count]
shl ebx, BSF sizeof.APPDATA ; multiply by size
; skip first process in the task table
mov ecx, SLOT_BASE
add ebx, ecx
.loop:
add ecx, sizeof.APPDATA
cmp [SLOT_BASE + ecx + APPDATA.state], TSTATE_FREE
cmp [ecx + APPDATA.state], TSTATE_FREE
jz @f ;skip empty slots
cmp [SLOT_BASE + ecx + APPDATA.tid], eax
cmp [ecx + APPDATA.tid], eax
jz .pid_found
;ecx = offset of current process info entry
;ebx = maximum permitted offset
@@:
cmp ecx, ebx
jb .loop