1//go:build gc
2
3#include "textflag.h"
4
5// lifted from github.com/golang/sys and cpu/cpu_arm64.s
6
7// func getisar0() uint64
8TEXT ยทgetisar0(SB), NOSPLIT, $0-8
9 // get Instruction Set Attributes 0 into x0
10 // mrs x0, ID_AA64ISAR0_EL1 = d5380600
11 WORD $0xd5380600
12 MOVD R0, ret+0(FP)
13 RET
14
15// func getisar1() uint64
16TEXT ยทgetisar1(SB), NOSPLIT, $0-8
17 // get Instruction Set Attributes 1 into x0
18 // mrs x0, ID_AA64ISAR1_EL1 = d5380620
19 WORD $0xd5380620
20 MOVD R0, ret+0(FP)
21 RET