From b3d42a6ce72d6e4155c26a1c48be4991458665e7 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Wed, 12 May 2021 10:14:56 -0700 Subject: enable building //pkg/tcpip on 32-bit MIPS N.B. we don't explicitly support MIPS, but there's no reason it shouldn't work. --- pkg/atomicbitops/aligned_32bit_unsafe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/atomicbitops/aligned_32bit_unsafe.go b/pkg/atomicbitops/aligned_32bit_unsafe.go index 776da53b0..df706b453 100644 --- a/pkg/atomicbitops/aligned_32bit_unsafe.go +++ b/pkg/atomicbitops/aligned_32bit_unsafe.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build arm 386 +// +build arm mips 386 package atomicbitops -- cgit v1.2.3 From d5f69e0decef6f62706fdeef33ba5f1305e2e431 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Wed, 12 May 2021 10:26:21 -0700 Subject: Use an exhaustive list of architectures --- pkg/atomicbitops/aligned_64bit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/atomicbitops/aligned_64bit.go b/pkg/atomicbitops/aligned_64bit.go index 869ba40cd..1544c7814 100644 --- a/pkg/atomicbitops/aligned_64bit.go +++ b/pkg/atomicbitops/aligned_64bit.go @@ -12,14 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build amd64 arm64 +// +build !arm,!mips,!386 package atomicbitops import "sync/atomic" // AlignedAtomicInt64 is an atomic int64 that is guaranteed to be 64-bit -// aligned, even on 32-bit systems. On 64-bit machines, it's just a regular +// aligned, even on 32-bit systems. On most architectures, it's just a regular // int64. // // See aligned_unsafe.go in this directory for justification. @@ -45,7 +45,7 @@ func (aa *AlignedAtomicInt64) Add(v int64) int64 { } // AlignedAtomicUint64 is an atomic uint64 that is guaranteed to be 64-bit -// aligned, even on 32-bit systems. On 64-bit machines, it's just a regular +// aligned, even on 32-bit systems. On most architectures, it's just a regular // uint64. // // See aligned_unsafe.go in this directory for justification. -- cgit v1.2.3