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

src/pkg/runtime/os_netbsd.c
src/pkg/runtime/signal_freebsd_386.h
src/pkg/runtime/signal_freebsd_amd64.h
src/pkg/runtime/signal_freebsd_arm.h

index d4b874f4c24da180372ca46fecee25bd5632bb27..2e8e758999a0382acae98e34b2c5e1ad99f78036 100644 (file)
@@ -30,6 +30,7 @@ extern void runtime·lwp_mcontext_init(void *mc, void *stack, M *mp, G *gp, void
 extern int32 runtime·lwp_park(Timespec *abstime, int32 unpark, void *hint, void *unparkhint);
 extern int32 runtime·lwp_unpark(int32 lwp, void *hint);
 extern int32 runtime·lwp_self(void);
+extern void runtime·lwp_tramp(void);
 
 // From NetBSD's <sys/sysctl.h>
 #define        CTL_HW  6
index 4f641fe7603559d4b831232cd8145804ac367158..a24f1ee96c559e84cf7142a1e71e6c6d2759cab5 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) (*((Ucontext*)(ctxt))->uc_mcontext)
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_EAX(info, ctxt) (SIG_REGS(ctxt).mc_eax)
 #define SIG_EBX(info, ctxt) (SIG_REGS(ctxt).mc_ebx)
index bde629fadd5a4427ec5ba68f2ce955ae606632db..7d35b7f856d796c140fec12eb994bfac7d26b4d3 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) (*((Ucontext*)(ctxt))->uc_mcontext)
+#define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
 
 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).mc_rax)
 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).mc_rbx)
index 4f26da36117d694c19cb7d6b9e7f959947288912..231d4b753f7fe24a988fe130537fcd87bcb2da95 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) (((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext))
 
 #define SIG_R0(info, ctxt) (SIG_REGS(ctxt).__gregs[0])
 #define SIG_R1(info, ctxt) (SIG_REGS(ctxt).__gregs[1])