Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 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)
Back to top