github.com/primecitizens/pcz/std@v0.2.1/core/cpu/cpu_arm64.s (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2020 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 //go:build arm64 9 10 #include "textflag.h" 11 12 // func getisar0() uint64 13 TEXT ·getisar0(SB),NOSPLIT,$0 14 // get Instruction Set Attributes 0 into R0 15 MRS ID_AA64ISAR0_EL1, R0 16 MOVD R0, ret+0(FP) 17 RET 18 19 // func getMIDR() uint64 20 TEXT ·getMIDR(SB), NOSPLIT, $0-8 21 MRS MIDR_EL1, R0 22 MOVD R0, ret+0(FP) 23 RET