Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for archauxv (0.09 sec)

  1. src/runtime/os_freebsd_arm.go

    	if getncpu() > 1 && goarm < 7 {
    		print("runtime: this system has multiple CPUs and must use\n")
    		print("atomic synchronization instructions. Recompile using GOARM=7.\n")
    		exit(1)
    	}
    }
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	case _AT_HWCAP2:
    		cpu.HWCap2 = uint(val)
    	case _AT_PLATFORM:
    		cpu.Platform = gostringnocopy((*byte)(unsafe.Pointer(val)))
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/os_linux_arm.go

    		print("a binary compiled for VFPv3 hard floating point. Recompile adding ,softfloat\n")
    		print("to GOARM or changing GOARM to 6.\n")
    		exit(1)
    	}
    }
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	case _AT_HWCAP2:
    		cpu.HWCap2 = uint(val)
    	case _AT_PLATFORM:
    		cpu.Platform = gostringnocopy((*byte)(unsafe.Pointer(val)))
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/internal/cpu/cpu_arm.go

    // license that can be found in the LICENSE file.
    
    package cpu
    
    const CacheLinePadSize = 32
    
    // arm doesn't have a 'cpuid' equivalent, so we rely on HWCAP/HWCAP2.
    // These are initialized by archauxv() and should not be changed after they are
    // initialized.
    var HWCap uint
    var HWCap2 uint
    var Platform string
    
    // HWCAP/HWCAP2 bits. These are exposed by Linux and FreeBSD.
    const (
    	hwcap_VFPv4 = 1 << 16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:38:55 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_arm64_hwcap.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && linux
    
    package cpu
    
    import _ "unsafe" // for linkname
    
    // HWCap may be initialized by archauxv and
    // should not be changed after it was initialized.
    //
    // Other widely used packages
    // access HWCap using linkname as well, most notably:
    //   - github.com/klauspost/cpuid/v2
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/runtime/os_freebsd.go

    		// _AT_NCPUS from auxv shouldn't be used due to golang.org/issue/15206
    		case _AT_PAGESZ:
    			physPageSize = val
    		case _AT_TIMEKEEP:
    			timekeepSharedPage = (*vdsoTimekeep)(unsafe.Pointer(val))
    		}
    
    		archauxv(tag, val)
    	}
    	return i / 2
    }
    
    // sysSigaction calls the sigaction system call.
    //
    //go:nosplit
    func sysSigaction(sig uint32, new, old *sigactiont) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. src/runtime/os_linux.go

    			// worth of random data.
    			startupRand = (*[16]byte)(unsafe.Pointer(val))[:]
    
    		case _AT_PAGESZ:
    			physPageSize = val
    
    		case _AT_SECURE:
    			secureMode = val == 1
    		}
    
    		archauxv(tag, val)
    		vdsoauxv(tag, val)
    	}
    	return i / 2
    }
    
    var sysTHPSizePath = []byte("/sys/kernel/mm/transparent_hugepage/hpage_pmd_size\x00")
    
    func getHugePageSize() uintptr {
    	var numbuf [20]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top