LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2013 The Go Authors. All rights reserved. | 1 // Copyright 2013 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs64) | 5 #define SIG_REGS(ctxt) (((ExcContext*)(ctxt))->regs.regs64) |
6 | 6 |
7 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax) | 7 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).rax) |
8 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx) | 8 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).rbx) |
9 #define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).rcx) | 9 #define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).rcx) |
10 #define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).rdx) | 10 #define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).rdx) |
11 #define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).rdi) | 11 #define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).rdi) |
12 #define SIG_RSI(info, ctxt) (SIG_REGS(ctxt).rsi) | 12 #define SIG_RSI(info, ctxt) (SIG_REGS(ctxt).rsi) |
13 #define SIG_RBP(info, ctxt) (SIG_REGS(ctxt).rbp) | 13 #define SIG_RBP(info, ctxt) (SIG_REGS(ctxt).rbp) |
14 #define SIG_RSP(info, ctxt) (SIG_REGS(ctxt).rsp) | 14 #define SIG_RSP(info, ctxt) (SIG_REGS(ctxt).rsp) |
15 #define SIG_R8(info, ctxt) (SIG_REGS(ctxt).r8) | 15 #define SIG_R8(info, ctxt) (SIG_REGS(ctxt).r8) |
16 #define SIG_R9(info, ctxt) (SIG_REGS(ctxt).r9) | 16 #define SIG_R9(info, ctxt) (SIG_REGS(ctxt).r9) |
17 #define SIG_R10(info, ctxt) (SIG_REGS(ctxt).r10) | 17 #define SIG_R10(info, ctxt) (SIG_REGS(ctxt).r10) |
18 #define SIG_R11(info, ctxt) (SIG_REGS(ctxt).r11) | 18 #define SIG_R11(info, ctxt) (SIG_REGS(ctxt).r11) |
19 #define SIG_R12(info, ctxt) (SIG_REGS(ctxt).r12) | 19 #define SIG_R12(info, ctxt) (SIG_REGS(ctxt).r12) |
20 #define SIG_R13(info, ctxt) (SIG_REGS(ctxt).r13) | 20 #define SIG_R13(info, ctxt) (SIG_REGS(ctxt).r13) |
21 #define SIG_R14(info, ctxt) (SIG_REGS(ctxt).r14) | 21 #define SIG_R14(info, ctxt) (SIG_REGS(ctxt).r14) |
22 #define SIG_R15(info, ctxt) (SIG_REGS(ctxt).r15) | 22 #define SIG_R15(info, ctxt) (SIG_REGS(ctxt).r15) |
23 #define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).rip) | 23 #define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).rip) |
24 #define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).rflags) | 24 #define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).rflags) |
25 | 25 |
26 #define SIG_CS(info, ctxt) (~0) | 26 #define SIG_CS(info, ctxt) (~0) |
27 #define SIG_FS(info, ctxt) (~0) | 27 #define SIG_FS(info, ctxt) (~0) |
28 #define SIG_GS(info, ctxt) (~0) | 28 #define SIG_GS(info, ctxt) (~0) |
29 | 29 |
30 #define SIG_CODE0(info, ctxt) (~0) | 30 #define SIG_CODE0(info, ctxt) (~0) |
31 #define SIG_CODE1(info, ctxt) (0) | 31 #define SIG_CODE1(info, ctxt) (0) |
LEFT | RIGHT |