]> Cypherpunks repositories - gostls13.git/commit
runtime: fix a register save/restore bug in sigtramp of arm-darwin
authorBen Shi <powerman1st@163.com>
Mon, 24 Jun 2019 02:17:40 +0000 (02:17 +0000)
committerBen Shi <powerman1st@163.com>
Tue, 25 Jun 2019 01:48:46 +0000 (01:48 +0000)
commitdf901bce5ed71132f5837b513663fec889d82731
treedb2ad90a2d9b5130637cf3fec787878bbb4abfe4
parentd1d9ad583df5d6dc58028e1303ddeccb39237220
runtime: fix a register save/restore bug in sigtramp of arm-darwin

In sigtramp of sys_darwin_arm.s, the callee-save register R4 is
saved to the stack, but later R2 is also saved to the save position.

That CL fixes the unexpected lost of the value in R4.

fixes #32744

Change-Id: Ifaeb99f11e4abf0c79bec9da67e0db97c358010c
Reviewed-on: https://go-review.googlesource.com/c/go/+/183517
Run-TryBot: Ben Shi <powerman1st@163.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/sys_darwin_arm.s