]> Cypherpunks repositories - gostls13.git/commit
runtime: fix openbsd/386
authorMatthew Dempsky <mdempsky@google.com>
Thu, 28 Aug 2014 21:23:25 +0000 (14:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 28 Aug 2014 21:23:25 +0000 (14:23 -0700)
commit4dbd0dbf1542274c298f78e969badf8a73e1e53e
tree13a3f9c82f4d43cb97e385cf4342a79ac51e1a16
parentc46bcd4d13492d3588638ea3ea4c752166709044
runtime: fix openbsd/386

In revision 05c3fee13eb3, openbsd/386's tfork implementation was
accidentally changed in one instruction from using the "params"
parameter to using the "psize" parameter.

While here, OpenBSD's __tfork system call returns a pid_t which is an
int32 on all OpenBSD architectures, so change runtime.tfork's return
type from int64 to int32 and update the assembly implementations
accordingly.

LGTM=iant
R=rsc, iant
CC=golang-codereviews, jsing
https://golang.org/cl/133190043
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_openbsd.go
src/pkg/runtime/sys_openbsd_386.s
src/pkg/runtime/sys_openbsd_amd64.s