1
0
mirror of https://github.com/golang/go synced 2024-09-24 11:20:20 -06:00

runtime: fix signal handling on Solaris

This fixes the problems with signal handling that were inadvertently
introduced in https://go-review.googlesource.com/21006.

Fixes #14899

Change-Id: Ia746914dcb3146a52413d32c57b089af763f0810
Reviewed-on: https://go-review.googlesource.com/21145
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Joe Sylve 2016-03-25 13:51:56 -05:00 committed by Ian Lance Taylor
parent 640164bc1c
commit 562e38c0af
2 changed files with 3 additions and 8 deletions

View File

@ -11,10 +11,6 @@ type sigctxt struct {
ctxt unsafe.Pointer
}
func makesigctxt(info *siginfo, ctxt unsafe.Pointer) *sigctxt {
return &sigctxt{info, ctxt}
}
func (c *sigctxt) regs() *mcontext {
return (*mcontext)(unsafe.Pointer(&(*ucontext)(c.ctxt).uc_mcontext))
}

View File

@ -173,10 +173,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0
MOVQ g(BX), R10
CMPQ R10, $0
JNE allgood
MOVQ SI, 0(SP)
MOVQ DX, 8(SP)
CALL runtime·makesigctxt(SB)
MOVQ 16(SP), AX
MOVQ SI, 80(SP)
MOVQ DX, 88(SP)
LEAQ 80(SP), AX
MOVQ DI, 0(SP)
MOVQ AX, 8(SP)
MOVQ $runtime·badsignal(SB), AX