Meng Zhuo | 70b957f | 2018-12-01 23:49:00 +0800 | [diff] [blame] | 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Russ Cox | 9a76102 | 2021-02-19 22:57:36 -0500 | [diff] [blame] | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 |
Meng Zhuo | 70b957f | 2018-12-01 23:49:00 +0800 | [diff] [blame] | 6 | |
| 7 | package cpu |
| 8 | |
Polina Osadcha | 0cf7623 | 2020-07-09 09:47:37 +0300 | [diff] [blame] | 9 | func archInit() { |
Tobias Klauser | 85b82a3 | 2019-12-01 17:19:09 +0100 | [diff] [blame] | 10 | if err := readHWCAP(); err != nil { |
Tobias Klauser | 92a0ff1 | 2019-02-27 16:14:45 +0100 | [diff] [blame] | 11 | return |
Meng Zhuo | 70b957f | 2018-12-01 23:49:00 +0800 | [diff] [blame] | 12 | } |
Meng Zhuo | 70b957f | 2018-12-01 23:49:00 +0800 | [diff] [blame] | 13 | doinit() |
Tobias Klauser | 92a0ff1 | 2019-02-27 16:14:45 +0100 | [diff] [blame] | 14 | Initialized = true |
Meng Zhuo | 70b957f | 2018-12-01 23:49:00 +0800 | [diff] [blame] | 15 | } |