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

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

Issue 7719046: code review 7719046: runtime: fix netbsd after reorg (again) (Closed)
Left Patch Set: Created 12 years ago
Right Patch Set: diff -r 1f708ff477eb https://go.googlecode.com/hg/ Created 12 years 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
« no previous file with change/comment | « src/pkg/runtime/signal_netbsd_amd64.h ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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) (*((Sigcontext*)&((Ucontext*)(ctxt))->uc_mcontext)) 5 #define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext)
6 6
7 #define SIG_R0(info, ctxt) (SIG_REGS(ctxt).__gregs[0]) 7 #define SIG_R0(info, ctxt) (SIG_REGS(ctxt).__gregs[0])
8 #define SIG_R1(info, ctxt) (SIG_REGS(ctxt).__gregs[1]) 8 #define SIG_R1(info, ctxt) (SIG_REGS(ctxt).__gregs[1])
9 #define SIG_R2(info, ctxt) (SIG_REGS(ctxt).__gregs[2]) 9 #define SIG_R2(info, ctxt) (SIG_REGS(ctxt).__gregs[2])
10 #define SIG_R3(info, ctxt) (SIG_REGS(ctxt).__gregs[3]) 10 #define SIG_R3(info, ctxt) (SIG_REGS(ctxt).__gregs[3])
11 #define SIG_R4(info, ctxt) (SIG_REGS(ctxt).__gregs[4]) 11 #define SIG_R4(info, ctxt) (SIG_REGS(ctxt).__gregs[4])
12 #define SIG_R5(info, ctxt) (SIG_REGS(ctxt).__gregs[5]) 12 #define SIG_R5(info, ctxt) (SIG_REGS(ctxt).__gregs[5])
13 #define SIG_R6(info, ctxt) (SIG_REGS(ctxt).__gregs[6]) 13 #define SIG_R6(info, ctxt) (SIG_REGS(ctxt).__gregs[6])
14 #define SIG_R7(info, ctxt) (SIG_REGS(ctxt).__gregs[7]) 14 #define SIG_R7(info, ctxt) (SIG_REGS(ctxt).__gregs[7])
15 #define SIG_R8(info, ctxt) (SIG_REGS(ctxt).__gregs[8]) 15 #define SIG_R8(info, ctxt) (SIG_REGS(ctxt).__gregs[8])
16 #define SIG_R9(info, ctxt) (SIG_REGS(ctxt).__gregs[9]) 16 #define SIG_R9(info, ctxt) (SIG_REGS(ctxt).__gregs[9])
17 #define SIG_R10(info, ctxt) (SIG_REGS(ctxt).__gregs[10]) 17 #define SIG_R10(info, ctxt) (SIG_REGS(ctxt).__gregs[10])
18 #define SIG_FP(info, ctxt) (SIG_REGS(ctxt).__gregs[11]) 18 #define SIG_FP(info, ctxt) (SIG_REGS(ctxt).__gregs[11])
19 #define SIG_IP(info, ctxt) (SIG_REGS(ctxt).__gregs[12]) 19 #define SIG_IP(info, ctxt) (SIG_REGS(ctxt).__gregs[12])
20 #define SIG_SP(info, ctxt) (SIG_REGS(ctxt).__gregs[13]) 20 #define SIG_SP(info, ctxt) (SIG_REGS(ctxt).__gregs[13])
21 #define SIG_LR(info, ctxt) (SIG_REGS(ctxt).__gregs[14]) 21 #define SIG_LR(info, ctxt) (SIG_REGS(ctxt).__gregs[14])
22 #define SIG_PC(info, ctxt) (SIG_REGS(ctxt).__gregs[15]) 22 #define SIG_PC(info, ctxt) (SIG_REGS(ctxt).__gregs[15])
23 #define SIG_CPSR(info, ctxt) (SIG_REGS(ctxt).__gregs[16]) 23 #define SIG_CPSR(info, ctxt) (SIG_REGS(ctxt).__gregs[16])
24 #define SIG_FAULT(info, ctxt) (*(uintptr*)&(info)->_reason[0]) 24 #define SIG_FAULT(info, ctxt) (*(uintptr*)&(info)->_reason[0])
25 #define SIG_TRAP(info, ctxt) (0) 25 #define SIG_TRAP(info, ctxt) (0)
26 #define SIG_ERROR(info, ctxt) (0) 26 #define SIG_ERROR(info, ctxt) (0)
27 #define SIG_OLDMASK(info, ctxt) (0) 27 #define SIG_OLDMASK(info, ctxt) (0)
LEFTRIGHT

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