...
Source file src/runtime/defs_nacl_amd64p32.go
1 package runtime
2
3 const (
4
5
6 _SIGQUIT = 3
7 _SIGTRAP = 5
8 _SIGSEGV = 11
9 _SIGPROF = 27
10 )
11
12 type timespec struct {
13 tv_sec int64
14 tv_nsec int32
15 }
16
17
18 func (ts *timespec) setNsec(ns int64) {
19 ts.tv_sec = ns / 1e9
20 ts.tv_nsec = int32(ns % 1e9)
21 }
22
23 type excregs386 struct {
24 eax uint32
25 ecx uint32
26 edx uint32
27 ebx uint32
28 esp uint32
29 ebp uint32
30 esi uint32
31 edi uint32
32 eip uint32
33 eflags uint32
34 }
35
36 type excregsamd64 struct {
37 rax uint64
38 rcx uint64
39 rdx uint64
40 rbx uint64
41 rsp uint64
42 rbp uint64
43 rsi uint64
44 rdi uint64
45 r8 uint64
46 r9 uint64
47 r10 uint64
48 r11 uint64
49 r12 uint64
50 r13 uint64
51 r14 uint64
52 r15 uint64
53 rip uint64
54 rflags uint32
55 }
56
57 type exccontext struct {
58 size uint32
59 portable_context_offset uint32
60 portable_context_size uint32
61 arch uint32
62 regs_size uint32
63 reserved [11]uint32
64 regs excregsamd64
65 }
66
67 type excportablecontext struct {
68 pc uint32
69 sp uint32
70 fp uint32
71 }
72
View as plain text