1
0
mirror of https://github.com/golang/go synced 2024-11-27 01:01:21 -07:00

runtime: revise openbsd/arm runtime defs

The OpenBSD arm port switched to EABI in September 2016 - this revises the layout
of the runtime definitions to match what the kernel currently uses.

Change-Id: I1bca7de56979f576862a7c280631e835f7ae4278
Reviewed-on: https://go-review.googlesource.com/c/153577
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Joel Sing 2018-12-12 02:19:50 +11:00
parent 01e072db5d
commit 47a71d9d77

View File

@ -130,8 +130,9 @@ type stackt struct {
} }
type timespec struct { type timespec struct {
tv_sec int64 tv_sec int64
tv_nsec int32 tv_nsec int32
pad_cgo_0 [4]byte
} }
func (ts *timespec) set_sec(x int64) { func (ts *timespec) set_sec(x int64) {
@ -143,8 +144,9 @@ func (ts *timespec) set_nsec(x int32) {
} }
type timeval struct { type timeval struct {
tv_sec int64 tv_sec int64
tv_usec int32 tv_usec int32
pad_cgo_0 [4]byte
} }
func (tv *timeval) set_usec(x int32) { func (tv *timeval) set_usec(x int32) {
@ -157,10 +159,12 @@ type itimerval struct {
} }
type keventt struct { type keventt struct {
ident uint32 ident uint32
filter int16 filter int16
flags uint16 flags uint16
fflags uint32 fflags uint32
data int64 pad_cgo_0 [4]byte
udata *byte data int64
udata *byte
pad_cgo_1 [4]byte
} }