Rev 6811 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6811 | Rev 6812 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | 59 | ||
60 | ; void exit_thread(int exit_code) |
60 | ; void exit_thread(int exit_code) |
61 | ; Terminates the current thread. |
61 | ; Terminates the current thread. |
62 | ; exit_code is reserved; currently ignored |
62 | ; exit_code is reserved; currently ignored |
- | 63 | proc exit_thread stdcall, exit_code |
|
- | 64 | ; Use int 0x40 instead of call FS_SYSCALL_PTR, because we are freeing the stack. |
|
- | 65 | mov eax, 68 |
|
- | 66 | mov ebx, 13 |
|
- | 67 | mov ecx, FS_STACK_MIN |
|
63 | proc exit_thread stdcall, exit_code |
68 | int 0x40 |
64 | or eax, -1 |
69 | or eax, -1 |
65 | call FS_SYSCALL_PTR |
70 | int 0x40 |
Line 66... | Line 71... | ||
66 | endp |
71 | endp |
67 | 72 | ||
68 | ; Real entry point of threads created by create_thread. |
73 | ; Real entry point of threads created by create_thread. |