forked from KolibriOS/kolibrios
Fix for r. 2430
git-svn-id: svn://kolibrios.org@2472 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
dd46cf411e
commit
bff46d5384
@ -2035,13 +2035,13 @@ sysfn_shutdown: ; 18.9 = system shutdown
|
|||||||
endg
|
endg
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
sysfn_terminate: ; 18.2 = TERMINATE
|
sysfn_terminate: ; 18.2 = TERMINATE
|
||||||
|
push ecx
|
||||||
cmp ecx, 2
|
cmp ecx, 2
|
||||||
jb noprocessterminate
|
jb noprocessterminate
|
||||||
mov edx, [TASK_COUNT]
|
mov edx, [TASK_COUNT]
|
||||||
cmp ecx, edx
|
cmp ecx, edx
|
||||||
ja noprocessterminate
|
ja noprocessterminate
|
||||||
mov eax, [TASK_COUNT]
|
mov eax, [TASK_COUNT]
|
||||||
push ecx
|
|
||||||
shl ecx, 5
|
shl ecx, 5
|
||||||
mov edx, [ecx+CURRENT_TASK+TASKDATA.pid]
|
mov edx, [ecx+CURRENT_TASK+TASKDATA.pid]
|
||||||
add ecx, CURRENT_TASK+TASKDATA.state
|
add ecx, CURRENT_TASK+TASKDATA.state
|
||||||
@ -2062,7 +2062,6 @@ sysfn_terminate: ; 18.2 = TERMINATE
|
|||||||
@@:
|
@@:
|
||||||
popa
|
popa
|
||||||
.restore_end:
|
.restore_end:
|
||||||
add esp, 4
|
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
;call MEM_Heap_Lock ;guarantee that process isn't working with heap
|
;call MEM_Heap_Lock ;guarantee that process isn't working with heap
|
||||||
mov [ecx], byte 3; clear possible i40's
|
mov [ecx], byte 3; clear possible i40's
|
||||||
@ -2075,6 +2074,7 @@ noatsc:
|
|||||||
; for guarantee the updating data
|
; for guarantee the updating data
|
||||||
call change_task
|
call change_task
|
||||||
noprocessterminate:
|
noprocessterminate:
|
||||||
|
add esp, 4
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
sysfn_terminate2:
|
sysfn_terminate2:
|
||||||
|
Loading…
Reference in New Issue
Block a user