1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:44:41 -07:00
go/src/runtime/defs_nacl_arm.go
Russ Cox 580ef3e4af [dev.cc] runtime: convert defs_$GOOS_$GOARCH.h to Go
The conversion was done with an automated tool and then
modified only as necessary to make it compile and run.

In a few cases, defs_$GOOS_$GOARCH.go already existed,
so the target here is defs1_$GOOS_$GOARCH.go.

[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]

LGTM=r
R=r
CC=austin, dvyukov, golang-codereviews, iant, khr
https://golang.org/cl/171490043
2014-11-11 17:07:37 -05:00

50 lines
878 B
Go

package runtime
const (
// These values are referred to in the source code
// but really don't matter. Even so, use the standard numbers.
_SIGSEGV = 11
_SIGPROF = 27
)
type timespec struct {
tv_sec int64
tv_nsec int32
}
type excregsarm struct {
r0 uint32
r1 uint32
r2 uint32
r3 uint32
r4 uint32
r5 uint32
r6 uint32
r7 uint32
r8 uint32
r9 uint32 // the value reported here is undefined.
r10 uint32
r11 uint32
r12 uint32
sp uint32 /* r13 */
lr uint32 /* r14 */
pc uint32 /* r15 */
cpsr uint32
}
type exccontext struct {
size uint32
portable_context_offset uint32
portable_context_size uint32
arch uint32
regs_size uint32
reserved [11]uint32
regs excregsarm
}
type excportablecontext struct {
pc uint32
sp uint32
fp uint32
}