20 lines
333 B
ArmAsm
20 lines
333 B
ArmAsm
|
#ifdef __SUPPORT_VHEX_KERNEL
|
||
|
#include <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
|