]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix darwin/arm64 build
authorMatthew Dempsky <mdempsky@google.com>
Thu, 14 Jan 2016 20:14:05 +0000 (12:14 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 14 Jan 2016 20:57:21 +0000 (20:57 +0000)
Fixes #13916.

Change-Id: If2cad5473a749460909519ac20aca19dea8a2e7a
Reviewed-on: https://go-review.googlesource.com/18671
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/signal_darwin_arm64.go

index 8be0f4f9dcaf9c8828d9bd77906fd2f3ddca3d80..82f4a82bb368691b399c1c7c1b4c3de9a5930f66 100644 (file)
@@ -55,6 +55,7 @@ func (c *sigctxt) set_sp(x uint64)  { c.regs().sp = x }
 func (c *sigctxt) set_lr(x uint64)  { c.regs().lr = x }
 func (c *sigctxt) set_r28(x uint64) { c.regs().x[28] = x }
 
+func (c *sigctxt) set_sigcode(x uint64) { c.info.si_code = int32(x) }
 func (c *sigctxt) set_sigaddr(x uint64) {
        c.info.si_addr = (*byte)(unsafe.Pointer(uintptr(x)))
 }