diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 047b359d3d..fafab7f58c 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1497,7 +1497,7 @@ func usesLibcall() bool { case "aix", "darwin", "illumos", "ios", "solaris", "windows": return true case "openbsd": - return GOARCH == "386" || GOARCH == "amd64" || GOARCH == "arm" || GOARCH == "arm64" + return GOARCH != "mips64" } return false } @@ -1509,10 +1509,7 @@ func mStackIsSystemAllocated() bool { case "aix", "darwin", "plan9", "illumos", "ios", "solaris", "windows": return true case "openbsd": - switch GOARCH { - case "386", "amd64", "arm", "arm64": - return true - } + return GOARCH != "mips64" } return false } diff --git a/src/syscall/exec_unix.go b/src/syscall/exec_unix.go index 9a5f2d3295..206c0ab32b 100644 --- a/src/syscall/exec_unix.go +++ b/src/syscall/exec_unix.go @@ -293,7 +293,7 @@ func Exec(argv0 string, argv []string, envv []string) (err error) { } else if runtime.GOOS == "darwin" || runtime.GOOS == "ios" { // Similarly on Darwin. err1 = execveDarwin(argv0p, &argvp[0], &envvp[0]) - } else if runtime.GOOS == "openbsd" && (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + } else if runtime.GOOS == "openbsd" && runtime.GOARCH != "mips64" { // Similarly on OpenBSD. err1 = execveOpenBSD(argv0p, &argvp[0], &envvp[0]) } else {