]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: revise openbsd/arm runtime defs
authorJoel Sing <joel@sing.id.au>
Tue, 11 Dec 2018 15:19:50 +0000 (02:19 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 11 Dec 2018 16:05:36 +0000 (16:05 +0000)
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>
src/runtime/defs_openbsd_arm.go

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