]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: fix check64
authorRuss Cox <rsc@golang.org>
Thu, 2 Jun 2011 17:13:51 +0000 (13:13 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 2 Jun 2011 17:13:51 +0000 (13:13 -0400)
commit69cb8fef43aba1d133d093c4617c5711c1b5a20b
tree686bec8e28d1f2892aeec60b7303b989c6fc8cd0
parentf3c351982fc2a9940f7ec831db48569b56f0a035
sync/atomic: fix check64

The LDREXD and STREXD instructions require
aligned addresses, and the ARM stack is not
guaranteed to be aligned during the check.
This may cause other problems later (on the ARM
not all 64-bit pointers may be 64-bit aligned)
but at least the check is correct now.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4564053
src/pkg/sync/atomic/asm_arm.s