Skip to content

Commit c5a2f36

Browse files
committed
runtime: fix darwin/arm64 build
Fixes #13916. Change-Id: If2cad5473a749460909519ac20aca19dea8a2e7a Reviewed-on: https://go-review.googlesource.com/18671 Reviewed-by: David Crawshaw <crawshaw@golang.org>
1 parent 383d817 commit c5a2f36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/signal_darwin_arm64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func (c *sigctxt) set_sp(x uint64) { c.regs().sp = x }
5555
func (c *sigctxt) set_lr(x uint64) { c.regs().lr = x }
5656
func (c *sigctxt) set_r28(x uint64) { c.regs().x[28] = x }
5757

58+
func (c *sigctxt) set_sigcode(x uint64) { c.info.si_code = int32(x) }
5859
func (c *sigctxt) set_sigaddr(x uint64) {
5960
c.info.si_addr = (*byte)(unsafe.Pointer(uintptr(x)))
6061
}

0 commit comments

Comments
 (0)