aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/asm_ppc64x.s7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/asm_ppc64x.s b/src/runtime/asm_ppc64x.s
index aaa2e4346c..ffc4b005cb 100644
--- a/src/runtime/asm_ppc64x.s
+++ b/src/runtime/asm_ppc64x.s
@@ -30,9 +30,6 @@ TEXT _rt0_ppc64x_lib(SB),NOSPLIT|NOFRAME,$0
MOVD $runtime·reginit(SB), R12
MOVD R12, CTR
BL (CTR)
- MOVD $runtime·libpreinit(SB), R12
- MOVD R12, CTR
- BL (CTR)
#ifdef GOOS_aix
// See runtime/cgo/gcc_aix_ppc64.c
@@ -41,6 +38,10 @@ TEXT _rt0_ppc64x_lib(SB),NOSPLIT|NOFRAME,$0
BEQ done
#endif
+ MOVD $runtime·libpreinit(SB), R12
+ MOVD R12, CTR
+ BL (CTR)
+
// Create a new thread to do the runtime initialization and return.
// _cgo_sys_thread_create is a C function.
MOVD _cgo_sys_thread_create(SB), R12