diff options
author | Austin Clements <austin@google.com> | 2019-10-03 10:19:38 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2019-10-26 02:52:25 +0000 |
commit | 334291d1f629fb027bfcd7bff6d30e01dd9bf4c5 (patch) | |
tree | ca39d1a053e14b2b68208133183019e7ffa209e0 /src/runtime/sys_linux_ppc64x.s | |
parent | 3706cd85d37ec554821393eb49cb3c88edf9308a (diff) | |
download | go-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_ppc64x.s')
-rw-r--r-- | src/runtime/sys_linux_ppc64x.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/sys_linux_ppc64x.s b/src/runtime/sys_linux_ppc64x.s index 203ce089c1..de14418338 100644 --- a/src/runtime/sys_linux_ppc64x.s +++ b/src/runtime/sys_linux_ppc64x.s @@ -156,6 +156,18 @@ TEXT runtime·raiseproc(SB),NOSPLIT|NOFRAME,$0 SYSCALL $SYS_kill RET +TEXT ·getpid(SB),NOSPLIT|NOFRAME,$0-8 + SYSCALL $SYS_getpid + MOVD R3, ret+0(FP) + RET + +TEXT ·tgkill(SB),NOSPLIT|NOFRAME,$0-24 + MOVD tgid+0(FP), R3 + MOVD tid+8(FP), R4 + MOVD sig+16(FP), R5 + SYSCALL $SYS_tgkill + RET + TEXT runtime·setitimer(SB),NOSPLIT|NOFRAME,$0-24 MOVW mode+0(FP), R3 MOVD new+8(FP), R4 |