1 /* Copyright (C) 2002 Hewlett-Packard Co.
2      Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
3 
4 This file is part of libunwind.
5 
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sublicense, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
13 
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
24 
25 /* Constants shared between setcontext() and getcontext().  Don't
26    install this header file.  */
27 
28 #define SIG_BLOCK	0
29 #define SIG_UNBLOCK	1
30 #define SIG_SETMASK	2
31 
32 #define IA64_SC_FLAG_SYNCHRONOUS_BIT	63
33 
34 #define SC_FLAGS 0x000
35 #define SC_NAT	0x008
36 #define SC_BSP	0x048
37 #define SC_RNAT	0x050
38 #define SC_UNAT	0x060
39 #define SC_FPSR	0x068
40 #define SC_PFS	0x070
41 #define SC_LC	0x078
42 #define SC_PR	0x080
43 #define SC_BR	0x088
44 #define SC_GR	0x0c8
45 #define SC_FR	0x1d0
46 #define SC_MASK	0x9d0
47 
48 
49 #define rTMP	r10
50 #define rPOS	r11
51 #define rCPOS	r14
52 #define rNAT	r15
53 #define rFLAGS	r16
54 
55 #define rB5	r18
56 #define rB4	r19
57 #define rB3	r20
58 #define rB2	r21
59 #define rB1	r22
60 #define rB0	r23
61 #define rRSC	r24
62 #define rBSP	r25
63 #define rRNAT	r26
64 #define rUNAT	r27
65 #define rFPSR	r28
66 #define rPFS	r29
67 #define rLC	r30
68 #define rPR	r31
69