...
1// Copyright 2020 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
5#include "textflag.h"
6
7// func getisar0() uint64
8TEXT ·getisar0(SB),NOSPLIT,$0
9 // get Instruction Set Attributes 0 into R0
10 MRS ID_AA64ISAR0_EL1, R0
11 MOVD R0, ret+0(FP)
12 RET
13
14// func getpfr0() uint64
15TEXT ·getpfr0(SB),NOSPLIT,$0-8
16 // get Processor Feature Register 0 into R0
17 MRS ID_AA64PFR0_EL1, R0
18 MOVD R0, ret+0(FP)
19 RET
20
21// func getMIDR() uint64
22TEXT ·getMIDR(SB), NOSPLIT, $0-8
23 MRS MIDR_EL1, R0
24 MOVD R0, ret+0(FP)
25 RET
View as plain text