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

19 lines
247 B
ArmAsm
Raw Normal View History

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