mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
free the stack at exit
git-svn-id: svn://kolibrios.org@6812 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9be5e01ff1
commit
274dc2fb2c
@ -61,8 +61,13 @@ endp
|
||||
; Terminates the current thread.
|
||||
; exit_code is reserved; currently ignored
|
||||
proc exit_thread stdcall, exit_code
|
||||
; Use int 0x40 instead of call FS_SYSCALL_PTR, because we are freeing the stack.
|
||||
mov eax, 68
|
||||
mov ebx, 13
|
||||
mov ecx, FS_STACK_MIN
|
||||
int 0x40
|
||||
or eax, -1
|
||||
call FS_SYSCALL_PTR
|
||||
int 0x40
|
||||
endp
|
||||
|
||||
; Real entry point of threads created by create_thread.
|
||||
|
Loading…
Reference in New Issue
Block a user