2011-03-11 19:52:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
.section .text
|
|
|
|
|
|
|
|
.global __exit
|
|
|
|
.global __Exit
|
|
|
|
|
|
|
|
|
|
|
|
.align 4
|
|
|
|
__exit:
|
|
|
|
__Exit:
|
|
|
|
movl 4(%esp), %edx #store exit code
|
|
|
|
movl $68, %eax
|
|
|
|
movl $13, %ebx
|
2013-07-10 21:26:24 +02:00
|
|
|
movl %fs:8, %ecx
|
2011-03-11 19:52:24 +01:00
|
|
|
int $0x40 #destroy stack
|
|
|
|
|
|
|
|
movl $-1, %eax
|
|
|
|
int $0x40 #terminate thread
|
|
|
|
|