aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_darwin.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2020-04-06 16:16:48 -0400
committerAustin Clements <austin@google.com>2020-04-08 18:37:38 +0000
commitd5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb (patch)
tree4fdf0f2e0b21a99ee08bcf87ac833cd996b5162a /src/runtime/sys_darwin.go
parent8b4cbcc32098733832db0ba0cd8a8569315861c2 (diff)
downloadgo-d5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb.tar.gz
go-d5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb.zip
all: remove scattered remnants of darwin/386
This removes all conditions and conditional code (that I could find) that depended on darwin/386. Fixes #37610. Change-Id: I630d9ea13613fb7c0bcdb981e8367facff250ba0 Reviewed-on: https://go-review.googlesource.com/c/go/+/227582 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/sys_darwin.go')
-rw-r--r--src/runtime/sys_darwin.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/sys_darwin.go b/src/runtime/sys_darwin.go
index d2d1822aab..1b136f88a8 100644
--- a/src/runtime/sys_darwin.go
+++ b/src/runtime/sys_darwin.go
@@ -67,6 +67,17 @@ func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
}
func syscall()
+//go:linkname syscall_syscallX syscall.syscallX
+//go:nosplit
+//go:cgo_unsafe_args
+func syscall_syscallX(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
+ entersyscallblock()
+ libcCall(unsafe.Pointer(funcPC(syscallX)), unsafe.Pointer(&fn))
+ exitsyscall()
+ return
+}
+func syscallX()
+
//go:linkname syscall_syscall6 syscall.syscall6
//go:nosplit
//go:cgo_unsafe_args