From: Russ Cox Date: Thu, 14 Mar 2013 21:50:07 +0000 (-0400) Subject: runtime: fix build for freebsd/arm after reorg X-Git-Tag: go1.1rc2~503 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c89fc124c424b194af37c5ca71918f6b89a5c60e;p=gostls13.git runtime: fix build for freebsd/arm after reorg R=golang-dev CC=golang-dev https://golang.org/cl/7701046 --- diff --git a/src/pkg/runtime/signal_freebsd_arm.h b/src/pkg/runtime/signal_freebsd_arm.h index 231d4b753f..87a45aa27e 100644 --- a/src/pkg/runtime/signal_freebsd_arm.h +++ b/src/pkg/runtime/signal_freebsd_arm.h @@ -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]) @@ -25,3 +25,4 @@ #define SIG_TRAP(info, ctxt) (0) #define SIG_ERROR(info, ctxt) (0) #define SIG_OLDMASK(info, ctxt) (0) +#define SIG_CODE0(info, ctxt) ((uintptr)(info)->si_code)