Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2849 → Rev 2731

/kernel/branches/net/kernel.asm
66,8 → 66,6
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
format binary as "mnt"
 
include 'macros.inc'
include 'struct.inc'
 
2036,23 → 2034,16
push ecx
cmp ecx, 2
jb noprocessterminate
 
cmp ecx, [TASK_COUNT]
mov edx, [TASK_COUNT]
cmp ecx, edx
ja noprocessterminate
 
mov eax, [TASK_COUNT]
shl ecx, 5
mov eax, [TASK_COUNT]
mov edx, [ecx+CURRENT_TASK+TASKDATA.pid]
 
cmp byte [ecx+CURRENT_TASK+TASKDATA.state], 9
add ecx, CURRENT_TASK+TASKDATA.state
cmp byte [ecx], 9
jz noprocessterminate
;--------------------------------------
; terminate all network sockets it used
pusha
mov eax, edx
call SOCKET_process_end
popa
;--------------------------------------
cmp [_display.select_cursor], 0
je .restore_end
; restore default cursor before killing