- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 148 for osinit (0.1 sec)
-
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) -
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) -
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) -
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) -
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) -
src/runtime/os_openbsd_arm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime func checkgoarm() { // TODO(minux): FP checks like in os_linux_arm.go. // osinit not called yet, so ncpu not set: must use getncpu directly. 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")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 662 bytes - Viewed (0) -
src/internal/cpu/cpu_arm64_darwin.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build arm64 && darwin && !ios package cpu import _ "unsafe" // for linkname func osInit() { ARM64.HasATOMICS = sysctlEnabled([]byte("hw.optional.armv8_1_atomics\x00")) ARM64.HasCRC32 = sysctlEnabled([]byte("hw.optional.armv8_crc32\x00")) ARM64.HasSHA512 = sysctlEnabled([]byte("hw.optional.armv8_2_sha512\x00"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 1.3K bytes - Viewed (0) -
src/runtime/os_netbsd_arm.go
mc.__gregs[_REG_R1] = uint32(uintptr(unsafe.Pointer(gp))) mc.__gregs[_REG_R2] = uint32(fn) } func checkgoarm() { // TODO(minux): FP checks like in os_linux_arm.go. // osinit not called yet, so ncpu not set: must use getncpu directly. 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")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/stubs2.go
// //go:noescape func write1(fd uintptr, p unsafe.Pointer, n int32) int32 //go:noescape func open(name *byte, mode, perm int32) int32 // return value is only set on linux to be used in osinit(). func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32 // exitThread terminates the current thread, writing *wait = freeMStack when // the stack is safe to reclaim. // //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/os_freebsd_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) } // osinit not called yet, so ncpu not set: must use getncpu directly. 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")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.4K bytes - Viewed (0)