Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for osinit (0.12 sec)

  1. src/internal/cpu/cpu_ppc64x.go

    //go:build ppc64 || ppc64le
    
    package cpu
    
    const CacheLinePadSize = 128
    
    func doinit() {
    	options = []option{
    		{Name: "darn", Feature: &PPC64.HasDARN},
    		{Name: "scv", Feature: &PPC64.HasSCV},
    		{Name: "power9", Feature: &PPC64.IsPOWER9},
    	}
    
    	osinit()
    }
    
    func isSet(hwc uint, value uint) bool {
    	return hwc&value != 0
    }
    
    func Name() string {
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:05:43 UTC 2022
    - 651 bytes
    - Viewed (0)
  2. src/internal/cpu/cpu_arm64_linux.go

    // Copyright 2020 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 arm64 && linux && !android
    
    package cpu
    
    func osInit() {
    	hwcapInit("linux")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 250 bytes
    - Viewed (0)
  3. src/internal/cpu/cpu_ppc64x_linux.go

    const (
    	// ISA Level
    	hwcap2_ARCH_2_07 = 0x80000000
    	hwcap2_ARCH_3_00 = 0x00800000
    	hwcap2_ARCH_3_1  = 0x00040000
    
    	// CPU features
    	hwcap2_DARN = 0x00200000
    	hwcap2_SCV  = 0x00100000
    )
    
    func osinit() {
    	PPC64.IsPOWER8 = isSet(HWCap2, hwcap2_ARCH_2_07)
    	PPC64.IsPOWER9 = isSet(HWCap2, hwcap2_ARCH_3_00)
    	PPC64.IsPOWER10 = isSet(HWCap2, hwcap2_ARCH_3_1)
    	PPC64.HasDARN = isSet(HWCap2, hwcap2_DARN)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:05:43 UTC 2022
    - 885 bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_arm64_freebsd.go

    // Copyright 2020 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 arm64
    
    package cpu
    
    func osInit() {
    	// Retrieve info from system register ID_AA64ISAR0_EL1.
    	isar0 := getisar0()
    
    	parseARM64SystemRegisters(isar0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 26 16:42:53 UTC 2022
    - 322 bytes
    - Viewed (0)
  5. src/internal/cpu/cpu_arm64_android.go

    // Copyright 2020 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 arm64
    
    package cpu
    
    func osInit() {
    	hwcapInit("android")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 231 bytes
    - Viewed (0)
  6. src/internal/cpu/cpu_arm64_other.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 && !freebsd && !android && (!darwin || ios) && !openbsd
    
    package cpu
    
    func osInit() {
    	// Other operating systems do not support reading HWCap from auxiliary vector,
    	// reading privileged aarch64 system registers or sysctl in user space to detect
    	// CPU features at runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:07:46 UTC 2022
    - 466 bytes
    - Viewed (0)
  7. src/internal/cpu/cpu_arm64.go

    		{Name: "cpuid", Feature: &ARM64.HasCPUID},
    		{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)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 14:08:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/internal/cpu/cpu_arm64_openbsd.go

    	// From OpenBSD's sys/sysctl.h.
    	_CTL_MACHDEP = 7
    
    	// From OpenBSD's machine/cpu.h.
    	_CPU_ID_AA64ISAR0 = 2
    	_CPU_ID_AA64ISAR1 = 3
    )
    
    //go:noescape
    func sysctlUint64(mib []uint32) (uint64, bool)
    
    func osInit() {
    	// Get ID_AA64ISAR0 from sysctl.
    	isar0, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR0})
    	if !ok {
    		return
    	}
    	parseARM64SystemRegisters(isar0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 26 16:42:53 UTC 2022
    - 574 bytes
    - Viewed (0)
  9. src/internal/cpu/cpu_ppc64x_other.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (ppc64 || ppc64le) && !aix && !linux
    
    package cpu
    
    func osinit() {
    	// Other operating systems do not support reading HWCap from auxiliary vector,
    	// reading privileged system registers or sysctl in user space to detect CPU
    	// features at runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 18 06:24:06 UTC 2023
    - 423 bytes
    - Viewed (0)
  10. src/internal/cpu/cpu_ppc64x_aix.go

    //go:build ppc64 || ppc64le
    
    package cpu
    
    const (
    	// getsystemcfg constants
    	_SC_IMPL      = 2
    	_IMPL_POWER8  = 0x10000
    	_IMPL_POWER9  = 0x20000
    	_IMPL_POWER10 = 0x40000
    )
    
    func osinit() {
    	impl := getsystemcfg(_SC_IMPL)
    	PPC64.IsPOWER8 = isSet(impl, _IMPL_POWER8)
    	PPC64.IsPOWER9 = isSet(impl, _IMPL_POWER9)
    	PPC64.IsPOWER10 = isSet(impl, _IMPL_POWER10)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:05:43 UTC 2022
    - 603 bytes
    - Viewed (0)
Back to top