aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2011-06-10 13:50:19 +1000
committerAndrew Gerrand <adg@golang.org>2011-06-10 13:50:19 +1000
commitd44c4c351d9c3779b407e819fb1d06755492c9ad (patch)
tree3f2ff89c11b1d025f7b5825624b43adb44790d62
parent86183e43c92be0f3761abd0855e5cdac2280e073 (diff)
downloadgo-d44c4c351d9c3779b407e819fb1d06755492c9ad.tar.gz
go-d44c4c351d9c3779b407e819fb1d06755492c9ad.zip
sync/atomic: fix arm check64 bug
R=r, rsc CC=golang-dev https://golang.org/cl/4571059
-rw-r--r--src/pkg/sync/atomic/asm_arm.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/sync/atomic/asm_arm.s b/src/pkg/sync/atomic/asm_arm.s
index 448a98a010..95e2f5be41 100644
--- a/src/pkg/sync/atomic/asm_arm.s
+++ b/src/pkg/sync/atomic/asm_arm.s
@@ -90,11 +90,11 @@ add64loop:
TEXT check64<>(SB),7,$16
MOVW $10, R1
// 8-aligned stack address scratch space.
- MOVW $8(SP), R3
- AND $~7, R3
+ MOVW $8(R13), R5
+ AND $~7, R5
loop:
- LDREXD (R3), R2
- STREXD R2, (R3), R0
+ LDREXD (R5), R2
+ STREXD R2, (R5), R0
CMP $0, R0
BEQ ok
SUB $1, R1