blob: 743eb54354b598b61a295d11e04a3f3f95b4b9df [file] [log] [blame]
Meng Zhuo70b957f2018-12-01 23:49:00 +08001// 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 Cox9a761022021-02-19 22:57:36 -05005//go:build !386 && !amd64 && !amd64p32 && !arm64
Meng Zhuo70b957f2018-12-01 23:49:00 +08006
7package cpu
8
Polina Osadcha0cf76232020-07-09 09:47:37 +03009func archInit() {
Tobias Klauser85b82a32019-12-01 17:19:09 +010010 if err := readHWCAP(); err != nil {
Tobias Klauser92a0ff12019-02-27 16:14:45 +010011 return
Meng Zhuo70b957f2018-12-01 23:49:00 +080012 }
Meng Zhuo70b957f2018-12-01 23:49:00 +080013 doinit()
Tobias Klauser92a0ff12019-02-27 16:14:45 +010014 Initialized = true
Meng Zhuo70b957f2018-12-01 23:49:00 +080015}