diff options
Diffstat (limited to 'src/runtime/sys_freebsd_arm.s')
| -rw-r--r-- | src/runtime/sys_freebsd_arm.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/sys_freebsd_arm.s b/src/runtime/sys_freebsd_arm.s index 298900c9a2..0441d81b25 100644 --- a/src/runtime/sys_freebsd_arm.s +++ b/src/runtime/sys_freebsd_arm.s @@ -18,6 +18,8 @@ #define SYS_write (SYS_BASE + 4) #define SYS_open (SYS_BASE + 5) #define SYS_close (SYS_BASE + 6) +#define SYS_getpid (SYS_BASE + 20) +#define SYS_kill (SYS_BASE + 37) #define SYS_sigaltstack (SYS_BASE + 53) #define SYS_munmap (SYS_BASE + 73) #define SYS_madvise (SYS_BASE + 75) @@ -145,6 +147,17 @@ TEXT runtime·raise(SB),NOSPLIT,$8 SWI $0 RET +TEXT runtime·raiseproc(SB),NOSPLIT,$0 + // getpid + MOVW $SYS_getpid, R7 + SWI $0 + // kill(self, sig) + // arg 1 - pid, now in R0 + MOVW sig+0(FP), R1 // arg 2 - signal + MOVW $SYS_kill, R7 + SWI $0 + RET + TEXT runtime·setitimer(SB), NOSPLIT, $-8 MOVW mode+0(FP), R0 MOVW new+4(FP), R1 |
