]> Cypherpunks repositories - gostls13.git/commit
runtime: use proper C ABI for race call on PPC64LE
authorCherry Mui <cherryyz@google.com>
Fri, 1 Apr 2022 23:15:32 +0000 (19:15 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 4 Apr 2022 15:53:45 +0000 (15:53 +0000)
commitc8110c3df64a4eea12334a627cca2b78d6ff3082
treed7a03611b2e9b2dc0653a869b6bf8f7782fa5bf1
parent35fb79be6abc1a9a0860cd28cae89dda038f5125
runtime: use proper C ABI for race call on PPC64LE

On PPC64LE, the C ABI requires SP to be 16-byte aligned. Also, in
the C ABI the callee may save LR, CR, R2 etc. to the 4 reserved
words of the caller's frame. This CL aligns the SP and reserves
the space on stack.

Change-Id: I738880028815b7d3402647e4ebbdae37f45acc77
Reviewed-on: https://go-review.googlesource.com/c/go/+/397675
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/race_ppc64le.s