]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix arm, arm64, ppc64 builds (I hope)
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Apr 2015 01:58:22 +0000 (18:58 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 3 Apr 2015 05:18:31 +0000 (05:18 +0000)
I guess we need more builders.

Change-Id: I309e3df7608b9eef9339196fdc50dedf5f9422e4
Reviewed-on: https://go-review.googlesource.com/8434
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/sys_linux_arm.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_linux_ppc64x.s

index 242da45d927fc60a8ea8038220005b4830a61766..db9fcb90cf0c288f0dba9faf4276ff1af3f22f7f 100644 (file)
@@ -312,7 +312,8 @@ TEXT runtime·clone(SB),NOSPLIT,$0
 // int32 clone0(int32 flags, void *stack, void* fn, void* fnarg);
 TEXT runtime·clone0(SB),NOSPLIT,$0
        // TODO(spetrovic): Implement this method.
-       MOVW    $-1, ret+16(FP)
+       MOVW    $-1, R0
+       MOVW    R0, ret+16(FP)
        RET
 
 TEXT runtime·sigaltstack(SB),NOSPLIT,$0
index 06797c275d7ddfa76dbfc2de43621f52337d8c7b..28d813f849d8d416f05d6680ddf076f8aeb9b876 100644 (file)
@@ -359,7 +359,8 @@ again:
 // int32 clone0(int32 flags, void *stack, void* fn, void* fnarg);
 TEXT runtime·clone0(SB),NOSPLIT,$0
        // TODO(spetrovic): Implement this method.
-       MOVW    $-1, ret+32(FP)
+       MOVW    $-1, R0
+       MOVW    R0, ret+32(FP)
        RET
 
 TEXT runtime·sigaltstack(SB),NOSPLIT,$-8
index 1b8abb3f508b65c0361acb303e3a186a23919e39..b0477d3c2f6b879bdb6d59f983661277bc4fe989 100644 (file)
@@ -348,7 +348,8 @@ TEXT runtime·clone(SB),NOSPLIT,$-8
 // int32 clone0(int32 flags, void *stack, void* fn, void* fnarg);
 TEXT runtime·clone0(SB),NOSPLIT,$0
        // TODO(spetrovic): Implement this method.
-       MOVW    $-1, ret+32(FP)
+       MOVW    $-1, R3
+       MOVW    R3, ret+32(FP)
        RETURN
 
 TEXT runtime·sigaltstack(SB),NOSPLIT,$-8