aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os2_aix.go
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2020-10-28 22:43:59 +0100
committerMartin Möhrmann <moehrmann@google.com>2020-10-29 13:49:26 +0000
commit96bd0b1d4c34bf22d8fa6d4710cae334b842f37d (patch)
tree319afd2b457a9b5bccd96cb2f3d2fa005d1013bf /src/runtime/os2_aix.go
parentd9725f549f48ae6e4eaf70311f6827173453935b (diff)
downloadgo-96bd0b1d4c34bf22d8fa6d4710cae334b842f37d.tar.gz
go-96bd0b1d4c34bf22d8fa6d4710cae334b842f37d.zip
runtime: move ppc64/aix cpu feature detection to internal/cpu
Additionally removed unused PPC64.IsPOWER8 CPU feature detection. Change-Id: I1411b03d396a72e08d6d51f8a1d1bad49eaa720e Reviewed-on: https://go-review.googlesource.com/c/go/+/266077 Trust: Martin Möhrmann <moehrmann@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/runtime/os2_aix.go')
-rw-r--r--src/runtime/os2_aix.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/os2_aix.go b/src/runtime/os2_aix.go
index 31ac6ddf79..428ff7f225 100644
--- a/src/runtime/os2_aix.go
+++ b/src/runtime/os2_aix.go
@@ -518,9 +518,10 @@ func sigaltstack(new, old *stackt) {
}
//go:nosplit
-func getsystemcfg(label uint) uintptr {
+//go:linkname internal_cpu_getsystemcfg internal/cpu.getsystemcfg
+func internal_cpu_getsystemcfg(label uint) uint {
r, _ := syscall1(&libc_getsystemcfg, uintptr(label))
- return r
+ return uint(r)
}
func usleep1(us uint32)