From 201ba4db2418b54b698efb4d8082dcb504617cdb Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Thu, 29 Oct 2020 06:11:48 +1100 Subject: [PATCH] cpu: make x/sys/cpu build on non-linux mips64x Update golang/go#40995 Change-Id: Icab9865e59350c11da32bf8af2d0830001e41323 Reviewed-on: https://go-review.googlesource.com/c/sys/+/265959 Trust: Joel Sing Trust: Tobias Klauser Reviewed-by: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot --- cpu/cpu_other_mips64x.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cpu/cpu_other_mips64x.go diff --git a/cpu/cpu_other_mips64x.go b/cpu/cpu_other_mips64x.go new file mode 100644 index 00000000..f49fad67 --- /dev/null +++ b/cpu/cpu_other_mips64x.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !linux +// +build mips64 mips64le + +package cpu + +func archInit() { + Initialized = true +}