kolibrios-gitea/contrib/sdk/sources/newlib/libc/crt/exit.S
Sergey Semyonov (Serge) 846fce0120 set default newlib dir's structure
git-svn-id: svn://kolibrios.org@4874 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-22 09:02:02 +00:00

21 lines
362 B
ArmAsm

.section .text
.global __exit
.global __Exit
.align 4
__exit:
__Exit:
movl 4(%esp), %edx #store exit code
movl $68, %eax
movl $13, %ebx
movl %fs:8, %ecx
int $0x40 #destroy stack
movl $-1, %eax
int $0x40 #terminate thread