Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(36)

Delta Between Two Patch Sets: src/pkg/runtime/signal_solaris_amd64.h

Issue 35990043: code review 35990043: runtime: add support for GOOS=solaris
Left Patch Set: Created 11 years, 4 months ago
Right Patch Set: diff -r ff8459d06e3f https://code.google.com/p/go Created 11 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
6
7 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RAX])
8 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RBX])
9 #define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RCX])
10 #define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDX])
11 #define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDI])
12 #define SIG_RSI(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RSI])
13 #define SIG_RBP(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RBP])
14 #define SIG_RSP(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RSP])
15 #define SIG_R8(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R8])
16 #define SIG_R9(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R9])
17 #define SIG_R10(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R10])
18 #define SIG_R11(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R11])
19 #define SIG_R12(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R12])
20 #define SIG_R13(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R13])
21 #define SIG_R14(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R14])
22 #define SIG_R15(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R15])
23 #define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RIP])
24 #define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RFLAGS])
25
26 #define SIG_CS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_CS])
27 #define SIG_FS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_FS])
28 #define SIG_GS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_GS])
29
30 #define SIG_CODE0(info, ctxt) ((info)->si_code)
31 #define SIG_CODE1(info, ctxt) (*(uintptr*)&(info)->__data[0])
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b