]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix netbsd after reorg (again)
authorRuss Cox <rsc@golang.org>
Thu, 14 Mar 2013 21:59:45 +0000 (17:59 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 14 Mar 2013 21:59:45 +0000 (17:59 -0400)
R=golang-dev
CC=golang-dev
https://golang.org/cl/7719046

src/pkg/runtime/signal_netbsd_386.h
src/pkg/runtime/signal_netbsd_amd64.h
src/pkg/runtime/signal_netbsd_arm.h

index 65df84da0d7793694a9bf981707a433852102e16..9cbd0385dfbef4ba39ac1f3289ec9dfba877c9d1 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define SIG_REGS(ctxt) (*((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext))
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_EAX(info, ctxt) (SIG_REGS(ctxt).__gregs[REG_EAX])
 #define SIG_EBX(info, ctxt) (SIG_REGS(ctxt).__gregs[REG_EBX])
index a374039aabcc9065f09765fa910f06e8ede3b631..4a339c1656b5be99043bb5b5b94c1f067267bae6 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define SIG_REGS(ctxt) (*((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext))
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).__gregs[REG_RAX])
 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).__gregs[REG_RBX])
index ffdca0e32f80330c9cc73e0a48b854c577fc3256..16df26df4b20c883a3eae912c7e28f1d89489e01 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#define SIG_REGS(ctxt) (*((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext))
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_R0(info, ctxt) (SIG_REGS(ctxt).__gregs[0])
 #define SIG_R1(info, ctxt) (SIG_REGS(ctxt).__gregs[1])