Skip to content

Commit 5bd37b8

Browse files
4a6f656cminux
authored andcommitted
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 81b70f3 commit 5bd37b8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/runtime/sys_openbsd_386.s

-8
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,6 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$12
214214
MOVL context+8(FP), BX
215215
MOVL BX, 8(SP)
216216
CALL runtime·sigtrampgo(SB)
217-
218-
// call sigreturn
219-
MOVL context+8(FP), AX
220-
MOVL $0, 0(SP) // syscall gap
221-
MOVL AX, 4(SP) // arg 1 - sigcontext
222-
MOVL $103, AX // sys_sigreturn
223-
INT $0x80
224-
MOVL $0xf1, 0xf1 // crash
225217
RET
226218

227219
// int32 tfork(void *param, uintptr psize, M *mp, G *gp, void (*fn)(void));

0 commit comments

Comments
 (0)