Skip to content

Commit 2de2dc2

Browse files
committed
syscall: regenerate ztypes for openbsd/arm
Regenerate ztypes for openbsd/arm - most of the changes relate to the OpenBSD armv7 port switching to EABI in September 2016. Also use signed char when generating openbsd/arm ztypes, to avoid inconsistencies between architectures impacting MI code. Change-Id: I9d2e19c1ac045922e270896861c830f94fc59c10 Reviewed-on: https://go-review.googlesource.com/c/153578 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent ba1de79 commit 2de2dc2

File tree

2 files changed

+33
-25
lines changed

2 files changed

+33
-25
lines changed

src/syscall/mkall.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ openbsd_arm)
310310
mksysctl="./mksysctl_openbsd.pl"
311311
zsysctl="zsysctl_openbsd.go"
312312
mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
313-
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
313+
# Let the type of C char be signed to make the bare syscall
314+
# API consistent between platforms.
315+
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
314316
;;
315317
plan9_386)
316318
mkerrors=

src/syscall/ztypes_openbsd_arm.go

Lines changed: 30 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)