forked from KolibriOS/kolibrios
upload sdk
git-svn-id: svn://kolibrios.org@4349 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
20
contrib/sdk/sources/newlib/crt/exit.S
Normal file
20
contrib/sdk/sources/newlib/crt/exit.S
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
.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
|
||||
|
Reference in New Issue
Block a user