Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getMIDR (0.17 sec)

  1. src/internal/cpu/cpu_arm64.s

    #include "textflag.h"
    
    // func getisar0() uint64
    TEXT ·getisar0(SB),NOSPLIT,$0
    	// get Instruction Set Attributes 0 into R0
    	MRS	ID_AA64ISAR0_EL1, R0
    	MOVD	R0, ret+0(FP)
    	RET
    
    // func getMIDR() uint64
    TEXT ·getMIDR(SB), NOSPLIT, $0-8
    	MRS	MIDR_EL1, R0
    	MOVD	R0, ret+0(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:23:43 UTC 2020
    - 439 bytes
    - Viewed (0)
  2. src/internal/cpu/cpu_arm64_hwcap.go

    	// check the AUXV for the CPUID bit. The getMIDR function executes an
    	// instruction which would normally be an illegal instruction, but it's
    	// trapped by the kernel, the value sanitized and then returned.
    	// Without the CPUID bit the kernel will not trap the instruction and the
    	// process will be terminated with SIGILL.
    	if ARM64.HasCPUID {
    		midr := getMIDR()
    		part_num := uint16((midr >> 4) & 0xfff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/internal/cpu/cpu_arm64.go

    		{Name: "isNeoverse", Feature: &ARM64.IsNeoverse},
    	}
    
    	// arm64 uses different ways to detect CPU features at runtime depending on the operating system.
    	osInit()
    }
    
    func getisar0() uint64
    
    func getMIDR() uint64
    
    func extractBits(data uint64, start, end uint) uint {
    	return (uint)(data>>start) & ((1 << (end - start + 1)) - 1)
    }
    
    func parseARM64SystemRegisters(isar0 uint64) {
    	// ID_AA64ISAR0_EL1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 14:08:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top