]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: fix 64-bit atomic cas for Linux/ARM
authorShenghou Ma <minux.ma@gmail.com>
Fri, 4 May 2012 18:02:36 +0000 (02:02 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 4 May 2012 18:02:36 +0000 (02:02 +0800)
commit4d724f4c5b31d13f55017266db6e6cc8bd08f541
tree19b7e953a8049d83537adc2d5839ccf13718ac10
parenta642ca49309b129e77ba15a066fbf8e7c4b69b79
sync/atomic: fix 64-bit atomic cas for Linux/ARM
    This is a follow-up to CL 5978051.
    Use kernel cas64 helper if we can, fallback to LDREXD/STREXD if
    we are on ARMv6 or higher, and to lock-emulated cas64 if on ARMv5.
    A future CL will fix {Add,Load,Store}{Int,Uint}64 and issue 3331.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/6034048
src/pkg/sync/atomic/asm_linux_arm.s