]> Cypherpunks repositories - gostls13.git/commit
runtime: reduce stack usage for asmcgocall on PPC64
authorCherry Mui <cherryyz@google.com>
Mon, 22 Apr 2024 21:40:53 +0000 (17:40 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 22 Apr 2024 22:46:08 +0000 (22:46 +0000)
commit0c39dc1ff72181d36f7e9fc61bfacc5a7b7c5c57
treea11cc8d74f1aacea5f222e5fbd629a82e170c405
parent552faa8927a23fd5967435295c14af1741ac3653
runtime: reduce stack usage for asmcgocall on PPC64

Define it as ABIInternal, so the result does not take space on
stack.

Also use R10 as a temporary register for arithmetics on SP, so it
is hidden from the assembler's SP delta calculation, which is
irrelevant anyway as we are on the system stack.

Change-Id: I8fed467601c19cad2d7afab26978246d15ce3147
Reviewed-on: https://go-review.googlesource.com/c/go/+/580918
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/asm_ppc64x.s