Root/
Source at commit 1275 created 12 years 11 months ago. By meklort, Remove unused file. Fixup makefiles some more - boot2 compiles again. | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@␊ |
5 | * ␊ |
6 | * This file contains Original Code and/or Modifications of Original Code␊ |
7 | * as defined in and that are subject to the Apple Public Source License␊ |
8 | * Version 2.0 (the 'License'). You may not use this file except in␊ |
9 | * compliance with the License. The rights granted to you under the License␊ |
10 | * may not be used to create, or enable the creation or redistribution of,␊ |
11 | * unlawful or unlicensed copies of an Apple operating system, or to␊ |
12 | * circumvent, violate, or enable the circumvention or violation of, any␊ |
13 | * terms of an Apple operating system software license agreement.␊ |
14 | * ␊ |
15 | * Please obtain a copy of the License at␊ |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file.␊ |
17 | * ␊ |
18 | * The Original Code and all software distributed under the License are␊ |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.␊ |
23 | * Please see the License for the specific language governing rights and␊ |
24 | * limitations under the License.␊ |
25 | * ␊ |
26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@␊ |
27 | */␊ |
28 | /* Copyright (c) 1998 Apple Computer, Inc. All rights reserved.␊ |
29 | *␊ |
30 | *␉File:␉ppc/setjmp.h␊ |
31 | *␊ |
32 | *␉Declaration of setjmp routines and data structures.␊ |
33 | */␊ |
34 | #ifndef _BSD_PPC_SETJMP_H_␊ |
35 | #define _BSD_PPC_SETJMP_H_␊ |
36 | ␊ |
37 | #include <sys/cdefs.h>␊ |
38 | ␊ |
39 | #define __need_struct_sigcontext␊ |
40 | #include <ppc/_structs.h>␊ |
41 | ␊ |
42 | struct _jmp_buf {␊ |
43 | #if __DARWIN_UNIX03␊ |
44 | ␉_STRUCT_SIGCONTEXT␉__sigcontext; /* kernel state preserved by set/longjmp */␊ |
45 | ␉unsigned int __vmask __attribute__((aligned(8))); /* vector mask register */␊ |
46 | ␉unsigned int __vreg[32 * 4] __attribute__((aligned(16)));␊ |
47 | ␉␉/* 32 128-bit vector registers */␊ |
48 | #else /* !__DARWIN_UNIX03 */␊ |
49 | ␉_STRUCT_SIGCONTEXT␉sigcontext; /* kernel state preserved by set/longjmp */␊ |
50 | ␉unsigned int vmask __attribute__((aligned(8))); /* vector mask register */␊ |
51 | ␉unsigned int vreg[32 * 4] __attribute__((aligned(16)));␊ |
52 | ␉␉/* 32 128-bit vector registers */␊ |
53 | #endif /* __DARWIN_UNIX03 */␊ |
54 | };␊ |
55 | ␊ |
56 | /*␊ |
57 | *␉_JBLEN is number of ints required to save the following:␊ |
58 | *␉r1, r2, r13-r31, lr, cr, ctr, xer, sig == 26 register_t sized␊ |
59 | *␉fr14 - fr31 = 18 doubles␊ |
60 | *␉vmask, 32 vector registers = 129 ints␊ |
61 | *␉2 ints to get all the elements aligned ␊ |
62 | *␊ |
63 | *␉register_t is 2 ints for ppc64 threads␊ |
64 | */␊ |
65 | #define _JBLEN64␉(26*2 + 18*2 + 129 + 1)␊ |
66 | #define _JBLEN32␉(26 + 18*2 + 129 + 1)␊ |
67 | #define _JBLEN_MAX␉_JBLEN64␊ |
68 | ␊ |
69 | /*␊ |
70 | * Locally scoped sizes␊ |
71 | */␊ |
72 | #if defined(__ppc64__)␊ |
73 | #define _JBLEN _JBLEN64␊ |
74 | #else␊ |
75 | #define _JBLEN _JBLEN32␊ |
76 | #endif␊ |
77 | ␊ |
78 | typedef int jmp_buf[_JBLEN];␊ |
79 | typedef int sigjmp_buf[_JBLEN + 1];␊ |
80 | ␊ |
81 | __BEGIN_DECLS␊ |
82 | int␉setjmp(jmp_buf);␊ |
83 | void␉longjmp(jmp_buf, int);␊ |
84 | ␊ |
85 | #ifndef _ANSI_SOURCE␊ |
86 | int␉_setjmp(jmp_buf);␊ |
87 | void␉_longjmp(jmp_buf, int);␊ |
88 | int␉sigsetjmp(sigjmp_buf, int);␊ |
89 | void␉siglongjmp(sigjmp_buf, int);␊ |
90 | #endif /* _ANSI_SOURCE */␊ |
91 | ␊ |
92 | #if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))␊ |
93 | void␉longjmperror(void);␊ |
94 | #endif /* neither ANSI nor POSIX */␊ |
95 | __END_DECLS␊ |
96 | ␊ |
97 | #endif /* !_BSD_PPC_SETJMP_H_ */␊ |
98 |