2020-10-14 11:45:08 +02:00
|
|
|
#ifdef __SUPPORT_VHEX_KERNEL
|
2021-05-09 17:34:00 +02:00
|
|
|
#include <bits/asm/unistd_32.h>
|
2020-09-17 19:27:01 +02:00
|
|
|
.text
|
|
|
|
.global _getpid
|
|
|
|
.type _getpid, @function
|
|
|
|
|
|
|
|
|
|
|
|
.align 2
|
2020-10-14 11:45:08 +02:00
|
|
|
/*
|
|
|
|
** 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
|
2020-10-14 11:45:08 +02:00
|
|
|
#endif
|