Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getMIDR (0.16 sec)

  1. 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)
  2. 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