summaryrefslogtreecommitdiff
path: root/src/runtime/sys_openbsd_386.s
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2016-05-09 02:13:03 +1000
committerMinux Ma <minux@golang.org>2016-05-12 07:32:01 +0000
commit5bd37b8e78980beed2861bbdc7f8f28fc3f72671 (patch)
tree6611db1b29fdd461c965eeb6c65ec54ecc16d25c /src/runtime/sys_openbsd_386.s
parent81b70f3751374ccd1eda2f536156dd91cd9f9c9b (diff)
downloadgo-git-5bd37b8e78980beed2861bbdc7f8f28fc3f72671.tar.gz
runtime: stop using sigreturn on openbsd/386
In future releases of OpenBSD, the sigreturn syscall will no longer exist. As such, stop using sigreturn on openbsd/386 and just return from the signal trampoline (as we already do for openbsd/amd64 and openbsd/arm). Change-Id: Ic4de1795bbfbfb062a685832aea0d597988c6985 Reviewed-on: https://go-review.googlesource.com/23024 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sys_openbsd_386.s')
-rw-r--r--src/runtime/sys_openbsd_386.s8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime/sys_openbsd_386.s b/src/runtime/sys_openbsd_386.s
index f80a85fb67..2bb818f456 100644
--- a/src/runtime/sys_openbsd_386.s
+++ b/src/runtime/sys_openbsd_386.s
@@ -214,14 +214,6 @@ TEXT runtimeĀ·sigtramp(SB),NOSPLIT,$12
MOVL context+8(FP), BX
MOVL BX, 8(SP)
CALL runtimeĀ·sigtrampgo(SB)
-
- // call sigreturn
- MOVL context+8(FP), AX
- MOVL $0, 0(SP) // syscall gap
- MOVL AX, 4(SP) // arg 1 - sigcontext
- MOVL $103, AX // sys_sigreturn
- INT $0x80
- MOVL $0xf1, 0xf1 // crash
RET
// int32 tfork(void *param, uintptr psize, M *mp, G *gp, void (*fn)(void));