This repository has been archived on 2025-02-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
pic32-newlib/newlib/libgloss/sparc/libsys/_exit.S
2009-02-02 03:03:19 +00:00

14 lines
No EOL
220 B
ArmAsm

! _exit() system call
#include "syscallasm.h"
TEXT_SECTION
ALIGN (4)
GLOBAL (ASM_SYMBOL (_exit))
ASM_SYMBOL (_exit):
mov SYS_exit,%g1
ta SYSCALL_TRAP
! If that returns (yikes!), try an illegal insn ...
WORD (0)