mirror of
https://github.com/golang/go
synced 2024-10-04 19:21:21 -06:00
580ef3e4af
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
43 lines
736 B
Go
43 lines
736 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 excregs386 struct {
|
|
eax uint32
|
|
ecx uint32
|
|
edx uint32
|
|
ebx uint32
|
|
esp uint32
|
|
ebp uint32
|
|
esi uint32
|
|
edi uint32
|
|
eip uint32
|
|
eflags uint32
|
|
}
|
|
|
|
type exccontext struct {
|
|
size uint32
|
|
portable_context_offset uint32
|
|
portable_context_size uint32
|
|
arch uint32
|
|
regs_size uint32
|
|
reserved [11]uint32
|
|
regs excregs386
|
|
}
|
|
|
|
type excportablecontext struct {
|
|
pc uint32
|
|
sp uint32
|
|
fp uint32
|
|
}
|