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) 2006-2007 Apple Inc. All rights reserved.␊ |
3 | */␊ |
4 | ␊ |
5 | #include <sys/appleapiopts.h>␊ |
6 | ␊ |
7 | #ifdef __need_mcontext_t␊ |
8 | #ifndef __need_struct_mcontext␊ |
9 | #define __need_struct_mcontext␊ |
10 | #endif /* __need_struct_mcontext */␊ |
11 | #endif /* __need_mcontext_t */␊ |
12 | ␊ |
13 | #if defined(__need_struct_mcontext)␊ |
14 | #include <mach/arm/_structs.h>␊ |
15 | #endif /* __need_struct_mcontext */␊ |
16 | ␊ |
17 | #ifdef __need_struct_mcontext␊ |
18 | #undef __need_struct_mcontext␊ |
19 | ␊ |
20 | #ifndef _STRUCT_MCONTEXT␊ |
21 | #if __DARWIN_UNIX03␊ |
22 | #define _STRUCT_MCONTEXT struct __darwin_mcontext␊ |
23 | _STRUCT_MCONTEXT␊ |
24 | {␊ |
25 | ␉_STRUCT_ARM_EXCEPTION_STATE␉__es;␊ |
26 | ␉_STRUCT_ARM_THREAD_STATE␉__ss;␊ |
27 | ␉_STRUCT_ARM_VFP_STATE␉␉__fs;␊ |
28 | };␊ |
29 | #else /* !__DARWIN_UNIX03 */␊ |
30 | #define _STRUCT_MCONTEXT struct mcontext␊ |
31 | _STRUCT_MCONTEXT␊ |
32 | {␊ |
33 | ␉_STRUCT_ARM_EXCEPTION_STATE␉es;␊ |
34 | ␉_STRUCT_ARM_THREAD_STATE␉ss;␊ |
35 | ␉_STRUCT_ARM_VFP_STATE␉␉fs;␊ |
36 | };␊ |
37 | #endif /* __DARWIN_UNIX03 */␊ |
38 | #endif /* _STRUCT_MCONTEXT */␊ |
39 | #endif /* __need_struct_mcontext */␊ |
40 | ␊ |
41 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)␊ |
42 | #ifndef ARM_MCONTEXT_SIZE␊ |
43 | #define ARM_MCONTEXT_SIZE (ARM_THREAD_STATE_COUNT + ARM_VFP_STATE_COUNT + ARM_EXCEPTION_STATE_COUNT) * sizeof(int)␊ |
44 | #endif /* ARM_MCONTEXT_SIZE */␊ |
45 | #endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */␊ |
46 |