commit | 62c309c54ccfdda4586a3ddb7e39b928a81ab04e | [log] [tgz] |
---|---|---|
author | Austin Clements <austin@google.com> | Thu Jun 06 17:08:07 2019 -0400 |
committer | Austin Clements <austin@google.com> | Thu Jun 06 21:33:51 2019 +0000 |
tree | 52c0d61c3a83650938e4a1803458f2a470330c20 | |
parent | d32ec38f1cfe69ed2a553272f6c8f425c59577f2 [diff] |
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>
diff --git a/src/runtime/internal/atomic/atomic_arm.go b/src/runtime/internal/atomic/atomic_arm.go index 3834ce5..c1fc1f7 100644 --- a/src/runtime/internal/atomic/atomic_arm.go +++ b/src/runtime/internal/atomic/atomic_arm.go
@@ -11,6 +11,10 @@ "unsafe" ) +// Export some functions via linkname to assembly in sync/atomic. +//go:linkname Xchg +//go:linkname Xchguintptr + type spinlock struct { v uint32 }