Commit 562e38c0 authored by Joe Sylve's avatar Joe Sylve Committed by Ian Lance Taylor

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/21145Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 640164bc
...@@ -11,10 +11,6 @@ type sigctxt struct { ...@@ -11,10 +11,6 @@ type sigctxt struct {
ctxt unsafe.Pointer ctxt unsafe.Pointer
} }
func makesigctxt(info *siginfo, ctxt unsafe.Pointer) *sigctxt {
return &sigctxt{info, ctxt}
}
func (c *sigctxt) regs() *mcontext { func (c *sigctxt) regs() *mcontext {
return (*mcontext)(unsafe.Pointer(&(*ucontext)(c.ctxt).uc_mcontext)) return (*mcontext)(unsafe.Pointer(&(*ucontext)(c.ctxt).uc_mcontext))
} }
......
...@@ -173,10 +173,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0 ...@@ -173,10 +173,9 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0
MOVQ g(BX), R10 MOVQ g(BX), R10
CMPQ R10, $0 CMPQ R10, $0
JNE allgood JNE allgood
MOVQ SI, 0(SP) MOVQ SI, 80(SP)
MOVQ DX, 8(SP) MOVQ DX, 88(SP)
CALL runtime·makesigctxt(SB) LEAQ 80(SP), AX
MOVQ 16(SP), AX
MOVQ DI, 0(SP) MOVQ DI, 0(SP)
MOVQ AX, 8(SP) MOVQ AX, 8(SP)
MOVQ $runtime·badsignal(SB), AX MOVQ $runtime·badsignal(SB), AX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment