diff options
author | Austin Clements <austin@google.com> | 2019-06-06 17:08:07 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2019-06-06 21:33:51 +0000 |
commit | 62c309c54ccfdda4586a3ddb7e39b928a81ab04e (patch) | |
tree | 52c0d61c3a83650938e4a1803458f2a470330c20 /src/runtime/internal | |
parent | d32ec38f1cfe69ed2a553272f6c8f425c59577f2 (diff) | |
download | go-62c309c54ccfdda4586a3ddb7e39b928a81ab04e.tar.gz go-62c309c54ccfdda4586a3ddb7e39b928a81ab04e.zip |
runtime/internal/atomic: export more ABI0 wrappers
Somehow I missed these two functions in CL 179863. This should fix the
linux-arm builders.
Updates #31230.
Change-Id: I3f8bef3fac331b505a55c0850b0fbc799b7c06c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/181077
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/internal')
-rw-r--r-- | src/runtime/internal/atomic/atomic_arm.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/internal/atomic/atomic_arm.go b/src/runtime/internal/atomic/atomic_arm.go index 3834ce5b91..c1fc1f727f 100644 --- a/src/runtime/internal/atomic/atomic_arm.go +++ b/src/runtime/internal/atomic/atomic_arm.go @@ -11,6 +11,10 @@ import ( "unsafe" ) +// Export some functions via linkname to assembly in sync/atomic. +//go:linkname Xchg +//go:linkname Xchguintptr + type spinlock struct { v uint32 } |