2011-06-12 00:16:26 +02:00
|
|
|
;---------------------------------------------------------------------
|
|
|
|
clear_thread:
|
2011-07-07 21:18:51 +02:00
|
|
|
call get_memory_for_thread_stack
|
2011-06-12 00:16:26 +02:00
|
|
|
mov [clear_thread_stack],eax
|
2011-07-07 21:18:51 +02:00
|
|
|
mcall 51,1,clear_thread_start ;, clear_thread_stack
|
2011-06-12 00:16:26 +02: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
|
|
|
|
;---------------------------------------------------------------------
|