Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for archauxv (0.26 sec)

  1. src/runtime/os_linux_mips64x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build linux && (mips64 || mips64le)
    
    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 996 bytes
    - Viewed (0)
  2. src/runtime/os_linux_arm64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64
    
    package runtime
    
    import "internal/cpu"
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 478 bytes
    - Viewed (0)
  3. src/runtime/os_linux_s390x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "internal/cpu"
    
    const (
    	_HWCAP_VX = 1 << 11 // vector facility
    )
    
    func archauxv(tag, val uintptr) {
    	switch tag {
    	case _AT_HWCAP:
    		cpu.HWCap = uint(val)
    	}
    }
    
    func osArchInit() {}
    
    func checkS390xCPU() {
    	// Check if the present z-system has the hardware capability to carryout
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 17:36:28 UTC 2023
    - 825 bytes
    - Viewed (0)
  4. src/runtime/os_linux_mipsx.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build linux && (mips || mipsle)
    
    package runtime
    
    func archauxv(tag, val uintptr) {
    }
    
    func osArchInit() {}
    
    //go:nosplit
    func cputicks() int64 {
    	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    	return nanotime()
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 987 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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