aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_ppc64x.s
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2023-03-31 19:56:26 +0000
committerCherry Mui <cherryyz@google.com>2023-04-03 18:58:39 +0000
commit4ac638f4b7c49370a62db4e6232f2895d7bbda0d (patch)
tree82a58296be851fe71b6ee2d1379acbc1e3373b94 /src/runtime/asm_ppc64x.s
parentf46320849da89bea3e23bae985ad753d30bbc5da (diff)
downloadgo-4ac638f4b7c49370a62db4e6232f2895d7bbda0d.tar.xz
Revert "Revert "runtime: consolidate function descriptor definitions on PPC64""
This reverts CL 481059, which in turn reverts CL 478917. Reason for revert: reapply the original CL. Change-Id: Icf6bb6a620313b44fadcc7f69a62fdbb943e34fd Reviewed-on: https://go-review.googlesource.com/c/go/+/481075 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> Reviewed-by: Paul Murphy <murp@ibm.com>
Diffstat (limited to 'src/runtime/asm_ppc64x.s')
-rw-r--r--src/runtime/asm_ppc64x.s21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/runtime/asm_ppc64x.s b/src/runtime/asm_ppc64x.s
index 7c866b4bc3..293683f419 100644
--- a/src/runtime/asm_ppc64x.s
+++ b/src/runtime/asm_ppc64x.s
@@ -771,26 +771,11 @@ TEXT runtimeĀ·setg(SB), NOSPLIT, $0-8
BL runtimeĀ·save_g(SB)
RET
-#ifdef GOARCH_ppc64
-#ifdef GOOS_aix
-DATA setg_gcc<>+0(SB)/8, $_setg_gcc<>(SB)
-DATA setg_gcc<>+8(SB)/8, $TOC(SB)
-DATA setg_gcc<>+16(SB)/8, $0
-GLOBL setg_gcc<>(SB), NOPTR, $24
+#ifdef GO_PPC64X_HAS_FUNCDESC
+DEFINE_PPC64X_FUNCDESC(setg_gcc<>, _setg_gcc<>)
+TEXT _setg_gcc<>(SB),NOSPLIT|NOFRAME,$0-0
#else
TEXT setg_gcc<>(SB),NOSPLIT|NOFRAME,$0-0
- DWORD $_setg_gcc<>(SB)
- DWORD $0
- DWORD $0
-#endif
-#endif
-
-// void setg_gcc(G*); set g in C TLS.
-// Must obey the gcc calling convention.
-#ifdef GOARCH_ppc64le
-TEXT setg_gcc<>(SB),NOSPLIT|NOFRAME,$0-0
-#else
-TEXT _setg_gcc<>(SB),NOSPLIT|NOFRAME,$0-0
#endif
// The standard prologue clobbers R31, which is callee-save in
// the C ABI, so we have to use $-8-0 and save LR ourselves.