Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2472 → Rev 2471

/kernel/trunk/kernel.asm
2035,7 → 2035,6
endg
;------------------------------------------------------------------------------
sysfn_terminate: ; 18.2 = TERMINATE
push ecx
cmp ecx, 2
jb noprocessterminate
mov edx, [TASK_COUNT]
2042,6 → 2041,7
cmp ecx, edx
ja noprocessterminate
mov eax, [TASK_COUNT]
push ecx
shl ecx, 5
mov edx, [ecx+CURRENT_TASK+TASKDATA.pid]
add ecx, CURRENT_TASK+TASKDATA.state
2062,6 → 2062,7
@@:
popa
.restore_end:
add esp, 4
;--------------------------------------
;call MEM_Heap_Lock ;guarantee that process isn't working with heap
mov [ecx], byte 3; clear possible i40's
2074,7 → 2075,6
; for guarantee the updating data
call change_task
noprocessterminate:
add esp, 4
ret
;------------------------------------------------------------------------------
sysfn_terminate2: