]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid clobbering C callee-save register in cgoSigtramp
authorBryan C. Mills <bcmills@google.com>
Wed, 11 Jan 2017 22:39:41 +0000 (17:39 -0500)
committerIan Lance Taylor <iant@golang.org>
Thu, 12 Jan 2017 00:06:32 +0000 (00:06 +0000)
commitfdde7ba2a2d35839d26c09ca79f1d8f3398f6e02
tree8d00115f0915594634efac700b8f4563231b4f4b
parentf65abf6ddc8d1f3d403a9195fd74eaffa022b07f
runtime: avoid clobbering C callee-save register in cgoSigtramp

Use R11 (a caller-saved temp register) instead of RBX (a callee-saved
register).

I believe this only affects linux/amd64, since it is the only platform
with a non-trivial cgoSigtramp implementation.

Updates #18328.

Change-Id: I3d35c4512624184d5a8ece653fa09ddf50e079a2
Reviewed-on: https://go-review.googlesource.com/35068
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/sys_linux_amd64.s