aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_openbsd_arm.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2018-12-14 05:03:37 +1100
committerJoel Sing <joel@sing.id.au>2018-12-13 18:13:30 +0000
commitf95578cd5fa6035e2b253bcb1af3a18ad7352251 (patch)
tree39185229bd2b24aa2dd16683e5223e3d3b167eda /src/runtime/defs_openbsd_arm.go
parentb6e6870cdb04a838dfb08f2792fbd8d41b849d2a (diff)
downloadgo-f95578cd5fa6035e2b253bcb1af3a18ad7352251.tar.gz
go-f95578cd5fa6035e2b253bcb1af3a18ad7352251.zip
runtime: correct signal structs/offsets for openbsd/arm
Update sigcontext and siginfo structs to match those currently in use by OpenBSD armv7. Also correct the offset of the fault address field in the siginfo struct, which moved due to the switch to EABI. Change-Id: Icdd95222346239fcc04b95ae0fcefae09b7aa044 Reviewed-on: https://go-review.googlesource.com/c/154077 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/defs_openbsd_arm.go')
-rw-r--r--src/runtime/defs_openbsd_arm.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/runtime/defs_openbsd_arm.go b/src/runtime/defs_openbsd_arm.go
index bfccf5772e..59f9410e1d 100644
--- a/src/runtime/defs_openbsd_arm.go
+++ b/src/runtime/defs_openbsd_arm.go
@@ -114,13 +114,17 @@ type sigcontext struct {
sc_usr_lr uint32
sc_svc_lr uint32
sc_pc uint32
+ sc_fpused uint32
+ sc_fpscr uint32
+ sc_fpreg [32]uint64
}
type siginfo struct {
- si_signo int32
- si_code int32
- si_errno int32
- _data [116]byte
+ si_signo int32
+ si_code int32
+ si_errno int32
+ pad_cgo_0 [4]byte
+ _data [120]byte
}
type stackt struct {