fxlibc/src/posix/sys/wait/target/vhex-sh/wait.S

20 lines
338 B
ArmAsm
Raw Normal View History

#ifdef __SUPPORT_VHEX_KERNEL
2021-05-09 17:34:00 +02:00
#include <bits/asm/unistd_32.h>
.text
.global _wait
.type _wait, @function
.align 2
/*
** extern pid_t wait(int *wstatus);
** Wait for a child to die. When one does, put its status in *STAT_LOC
** and return its process ID. For errors, return (pid_t) -1.
*/
_wait:
trapa #__NR_wait
rts
nop
.end
#endif