Commit d44c4c35 authored by Andrew Gerrand's avatar Andrew Gerrand

sync/atomic: fix arm check64 bug

R=r, rsc
CC=golang-dev
https://golang.org/cl/4571059
parent 86183e43
...@@ -90,11 +90,11 @@ add64loop: ...@@ -90,11 +90,11 @@ add64loop:
TEXT check64<>(SB),7,$16 TEXT check64<>(SB),7,$16
MOVW $10, R1 MOVW $10, R1
// 8-aligned stack address scratch space. // 8-aligned stack address scratch space.
MOVW $8(SP), R3 MOVW $8(R13), R5
AND $~7, R3 AND $~7, R5
loop: loop:
LDREXD (R3), R2 LDREXD (R5), R2
STREXD R2, (R3), R0 STREXD R2, (R5), R0
CMP $0, R0 CMP $0, R0
BEQ ok BEQ ok
SUB $1, R1 SUB $1, R1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment