...

Text file src/internal/cpu/cpu_arm64.s

Documentation: internal/cpu

     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 getMIDR() uint64
    15TEXT ·getMIDR(SB), NOSPLIT, $0-8
    16	MRS	MIDR_EL1, R0
    17	MOVD	R0, ret+0(FP)
    18	RET

View as plain text