]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix signal handling on Solaris
authorJoe Sylve <joe.sylve@gmail.com>
Fri, 25 Mar 2016 18:51:56 +0000 (13:51 -0500)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Mar 2016 21:38:47 +0000 (21:38 +0000)
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>
src/runtime/signal_solaris_amd64.go
src/runtime/sys_solaris_amd64.s

index 7ba368f25b2b8cf115cc9c8f0eab337f759f6398..a577c8c1994b2667d965394446de85be7189fcc8 100644 (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))
 }
index f8b7da5c6216902036e02bf774cbecde63d78101..07a7acef11357ef1c6c0b1dd675d84eea37c2688 100644 (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