]>
Commit | Line | Data |
---|---|---|
2aa62f2b | 1 | /* $NetBSD: setjmp.h,v 1.2 2006/09/10 21:16:56 cherry Exp $ */\r |
2 | \r | |
3 | /*-\r | |
4 | * Copyright (c) 2000\r | |
5 | * Intel Corporation.\r | |
6 | * All rights reserved.\r | |
7 | * \r | |
8 | * Redistribution and use in source and binary forms, with or without\r | |
9 | * modification, are permitted provided that the following conditions\r | |
10 | * are met:\r | |
11 | * \r | |
12 | * 1. Redistributions of source code must retain the above copyright\r | |
13 | * notice, this list of conditions and the following disclaimer.\r | |
14 | * \r | |
15 | * 2. Redistributions in binary form must reproduce the above copyright\r | |
16 | * notice, this list of conditions and the following disclaimer in the\r | |
17 | * documentation and/or other materials provided with the distribution.\r | |
18 | * \r | |
19 | * 3. All advertising materials mentioning features or use of this software\r | |
20 | * must display the following acknowledgement:\r | |
21 | * \r | |
22 | * This product includes software developed by Intel Corporation and\r | |
23 | * its contributors.\r | |
24 | * \r | |
25 | * 4. Neither the name of Intel Corporation or its contributors may be\r | |
26 | * used to endorse or promote products derived from this software\r | |
27 | * without specific prior written permission.\r | |
28 | * \r | |
29 | * THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION AND CONTRIBUTORS ``AS IS''\r | |
30 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r | |
31 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r | |
32 | * ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION OR CONTRIBUTORS BE\r | |
33 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r | |
34 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r | |
35 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r | |
36 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r | |
37 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r | |
38 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r | |
39 | * THE POSSIBILITY OF SUCH DAMAGE.\r | |
40 | * \r | |
41 | * $FreeBSD: src/sys/ia64/include/setjmp.h,v 1.12 2003/07/26 08:03:43 marcel Exp $\r | |
42 | */\r | |
43 | \r | |
44 | #ifndef _MACHINE_SETJMP_H_\r | |
45 | #define _MACHINE_SETJMP_H_\r | |
46 | \r | |
47 | #include <sys/cdefs.h>\r | |
48 | \r | |
49 | #define JMPBUF_ADDR_OF(buf, item) ((unsigned long)((char *)buf + item))\r | |
50 | \r | |
51 | #define J_UNAT 0\r | |
52 | #define J_NATS 0x8\r | |
53 | #define J_PFS 0x10\r | |
54 | #define J_BSP 0x18\r | |
55 | #define J_RNAT 0x20\r | |
56 | #define J_PREDS 0x28\r | |
57 | #define J_LC 0x30\r | |
58 | #define J_R4 0x38\r | |
59 | #define J_R5 0x40\r | |
60 | #define J_R6 0x48\r | |
61 | #define J_R7 0x50\r | |
62 | #define J_SP 0x58\r | |
63 | #define J_F2 0x60\r | |
64 | #define J_F3 0x70\r | |
65 | #define J_F4 0x80\r | |
66 | #define J_F5 0x90\r | |
67 | #define J_F16 0xa0\r | |
68 | #define J_F17 0xb0\r | |
69 | #define J_F18 0xc0\r | |
70 | #define J_F19 0xd0\r | |
71 | #define J_F20 0xe0\r | |
72 | #define J_F21 0xf0\r | |
73 | #define J_F22 0x100\r | |
74 | #define J_F23 0x110\r | |
75 | #define J_F24 0x120\r | |
76 | #define J_F25 0x130\r | |
77 | #define J_F26 0x140\r | |
78 | #define J_F27 0x150\r | |
79 | #define J_F28 0x160\r | |
80 | #define J_F29 0x170\r | |
81 | #define J_F30 0x180\r | |
82 | #define J_F31 0x190\r | |
83 | #define J_FPSR 0x1a0\r | |
84 | #define J_B0 0x1a8\r | |
85 | #define J_B1 0x1b0\r | |
86 | #define J_B2 0x1b8\r | |
87 | #define J_B3 0x1c0\r | |
88 | #define J_B4 0x1c8\r | |
89 | #define J_B5 0x1d0\r | |
90 | #define J_SIGMASK 0x1d8\r | |
91 | #define J_SIGSET 0x1e0\r | |
92 | \r | |
93 | #define _JBLEN 0x200 /* Size in long XXX: Set to sizeof(mcontext_t)/sizeof(long) */\r | |
94 | \r | |
95 | #ifdef _KERNEL\r | |
96 | #ifdef CTASSERT\r | |
97 | CTASSERT(sizeof(struct _jmp_buf) == 512);\r | |
98 | #endif\r | |
99 | #endif\r | |
100 | \r | |
101 | #endif /* !_MACHINE_SETJMP_H_ */\r |