aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_mipsx.s
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2019-10-03 10:19:38 -0400
committerAustin Clements <austin@google.com>2019-10-26 02:52:25 +0000
commit334291d1f629fb027bfcd7bff6d30e01dd9bf4c5 (patch)
treeca39d1a053e14b2b68208133183019e7ffa209e0 /src/runtime/sys_linux_mipsx.s
parent3706cd85d37ec554821393eb49cb3c88edf9308a (diff)
downloadgo-334291d1f629fb027bfcd7bff6d30e01dd9bf4c5.tar.gz
go-334291d1f629fb027bfcd7bff6d30e01dd9bf4c5.zip
runtime: M-targeted signals for Linux
We'll add a test once all of the POSIX platforms are done. For #10958, #24543. Change-Id: If7e3f14e8391791364877629bf415d9f8e788b0a Reviewed-on: https://go-review.googlesource.com/c/go/+/201401 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/sys_linux_mipsx.s')
-rw-r--r--src/runtime/sys_linux_mipsx.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/runtime/sys_linux_mipsx.s b/src/runtime/sys_linux_mipsx.s
index 3c405c264e..15893a7a28 100644
--- a/src/runtime/sys_linux_mipsx.s
+++ b/src/runtime/sys_linux_mipsx.s
@@ -183,6 +183,20 @@ TEXT runtime·raiseproc(SB),NOSPLIT,$0
SYSCALL
RET
+TEXT ·getpid(SB),NOSPLIT,$0-4
+ MOVW $SYS_getpid, R2
+ SYSCALL
+ MOVW R2, ret+0(FP)
+ RET
+
+TEXT ·tgkill(SB),NOSPLIT,$0-12
+ MOVW tgid+0(FP), R4
+ MOVW tid+4(FP), R5
+ MOVW sig+8(FP), R6
+ MOVW $SYS_tgkill, R2
+ SYSCALL
+ RET
+
TEXT runtime·setitimer(SB),NOSPLIT,$0-12
MOVW mode+0(FP), R4
MOVW new+4(FP), R5