aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_aix_ppc64.s
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2019-02-20 15:59:05 +0100
committerIan Lance Taylor <iant@golang.org>2019-03-05 01:30:35 +0000
commitc1e2227505cb856bbe9e8274e8427397d5df6c3d (patch)
tree194aee42b1d8704c5e7511b7e4c936bce846aca2 /src/runtime/sys_aix_ppc64.s
parent294edb272d5d145665bdf8b4254609eae0363a8d (diff)
downloadgo-c1e2227505cb856bbe9e8274e8427397d5df6c3d.tar.xz
runtime: use AIX C ABI in asmcgocall
The commit fixes asmcgocall in order to use the AIX C ABI. Change-Id: I2a44914a65557a841ea1e12991938af26ad7fd1d Reviewed-on: https://go-review.googlesource.com/c/go/+/164000 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/sys_aix_ppc64.s')
-rw-r--r--src/runtime/sys_aix_ppc64.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/runtime/sys_aix_ppc64.s b/src/runtime/sys_aix_ppc64.s
index 38e60f99eb..ea7fae0ce7 100644
--- a/src/runtime/sys_aix_ppc64.s
+++ b/src/runtime/sys_aix_ppc64.s
@@ -30,7 +30,13 @@ TEXT runtime·callCfunction(SB), NOSPLIT|NOFRAME,$0
// Called by runtime.asmcgocall
// It reserves a stack of 288 bytes for the C function.
// NOT USING GO CALLING CONVENTION
-TEXT runtime·asmsyscall6(SB),NOSPLIT,$256
+// runtime.asmsyscall6 is a function descriptor to the real asmsyscall6.
+DATA runtime·asmsyscall6+0(SB)/8, $runtime·_asmsyscall6(SB)
+DATA runtime·asmsyscall6+8(SB)/8, $TOC(SB)
+DATA runtime·asmsyscall6+16(SB)/8, $0
+GLOBL runtime·asmsyscall6(SB), NOPTR, $24
+
+TEXT runtime·_asmsyscall6(SB),NOSPLIT,$256
MOVD R3, 48(R1) // Save libcall for later
MOVD libcall_fn(R3), R12
MOVD libcall_args(R3), R9