fxlibc/src/unistd/arch/vhex/getppid.S

19 lines
263 B
ArmAsm
Raw Normal View History

#ifdef __SUPPORT_VHEX_KERNEL
#include <fxlibc/asm/unistd.h>
2020-09-17 19:27:01 +02:00
.text
.global _getppid
.type _getppid, @function
.align 2
/*
** extern pid_t getpgid(void);
** Get the parent process ID of the calling process.
*/
2020-09-17 19:27:01 +02:00
_getppid:
trapa #__NR_getppid
rts
nop
.end
#endif