diff options
author | Russ Cox <rsc@golang.org> | 2014-09-16 20:53:38 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-16 20:53:38 -0400 |
commit | 796b5c258b412212ebf9dc8e91487eafea38a7a9 (patch) | |
tree | 3e1b50b95817de2fade607e1934fd992f17f47e8 /src/sync | |
parent | bf1cf8a2e4e179e45a74f0daf3267e86cd92d659 (diff) | |
download | go-796b5c258b412212ebf9dc8e91487eafea38a7a9.tar.gz |
liblink, sync/atomic: fix arm build
The liblink code to insert the FUNCDATA for a stack map
from the Go prototype was not correct for ARM
(different data structure layout).
Also, sync/atomic was missing some Go prototypes
for ARM-specific functions.
TBR=r
CC=golang-codereviews
https://codereview.appspot.com/143160045
Diffstat (limited to 'src/sync')
-rw-r--r-- | src/sync/atomic/64bit_arm.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sync/atomic/64bit_arm.go b/src/sync/atomic/64bit_arm.go index c08f214c7..0aab7160e 100644 --- a/src/sync/atomic/64bit_arm.go +++ b/src/sync/atomic/64bit_arm.go @@ -44,3 +44,9 @@ func swapUint64(addr *uint64, new uint64) (old uint64) { } return } + +// Additional ARM-specific assembly routines. +// Declaration here to give assembly routines correct stack maps for arguments. +func armCompareAndSwapUint32(addr *uint32, old, new uint32) (swapped bool) +func armCompareAndSwapUint64(addr *uint64, old, new uint64) (swapped bool) +func generalCAS64(addr *uint64, old, new uint64) (swapped bool) |