2011-06-12 02:16:26 +04:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
clear_thread:
|
2011-07-07 23:18:51 +04:00
|
|
|
call get_memory_for_thread_stack
|
2011-06-12 02:16:26 +04:00
|
|
|
mov [clear_thread_stack],eax
|
2011-07-07 23:18:51 +04:00
|
|
|
mcall 51,1,clear_thread_start ;, clear_thread_stack
|
2011-06-12 02:16:26 +04:00
|
|
|
ret
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
clear_thread_start:
|
|
|
|
mcall 5,100
|
|
|
|
@@:
|
|
|
|
mcall 23,10
|
|
|
|
cmp eax,5
|
|
|
|
je @f
|
|
|
|
mcall 15,3
|
|
|
|
mcall 68,13,[clear_thread_stack]
|
|
|
|
mcall -1
|
|
|
|
;---------------------------------------------------------------------
|