| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 #if EXC_TYPES_COUNT > 13 // Definition varies with SDK | 55 #if EXC_TYPES_COUNT > 13 // Definition varies with SDK |
| 56 #error Update this file for new exception types | 56 #error Update this file for new exception types |
| 57 #elif EXC_TYPES_COUNT != 13 | 57 #elif EXC_TYPES_COUNT != 13 |
| 58 #undef EXC_TYPES_COUNT | 58 #undef EXC_TYPES_COUNT |
| 59 #define EXC_TYPES_COUNT 13 | 59 #define EXC_TYPES_COUNT 13 |
| 60 #endif | 60 #endif |
| 61 | 61 |
| 62 // <mach/i386/thread_status.h> | 62 // <mach/i386/thread_status.h> |
| 63 | 63 |
| 64 // 10.6 SDK |
| 65 // |
| 66 // Earlier versions of this SDK didn’t have AVX definitions. They didn’t appear |
| 67 // until the version of the 10.6 SDK that shipped with Xcode 4.2, although |
| 68 // versions of this SDK appeared with Xcode releases as early as Xcode 3.2. |
| 69 // Similarly, the kernel didn’t handle AVX state until Mac OS X 10.6.8 |
| 70 // (xnu-1504.15.3) and presumably the hardware-specific versions of Mac OS X |
| 71 // 10.6.7 intended to run on processors with AVX. |
| 72 |
| 73 #ifndef x86_AVX_STATE32 |
| 74 #define x86_AVX_STATE32 16 |
| 75 #endif |
| 76 |
| 77 #ifndef x86_AVX_STATE64 |
| 78 #define x86_AVX_STATE64 17 |
| 79 #endif |
| 80 |
| 64 // 10.8 SDK | 81 // 10.8 SDK |
| 65 | 82 |
| 66 #ifndef x86_AVX_STATE | 83 #ifndef x86_AVX_STATE |
| 67 #define x86_AVX_STATE 18 | 84 #define x86_AVX_STATE 18 |
| 68 #endif | 85 #endif |
| 69 | 86 |
| 70 #endif // defined(__i386__) || defined(__x86_64__) | 87 #endif // defined(__i386__) || defined(__x86_64__) |
| 71 | 88 |
| 72 // <mach/thread_status.h> | 89 // <mach/thread_status.h> |
| 73 | 90 |
| 74 // 10.8 SDK | 91 // 10.8 SDK |
| 75 | 92 |
| 76 #ifndef THREAD_STATE_FLAVOR_LIST_10_9 | 93 #ifndef THREAD_STATE_FLAVOR_LIST_10_9 |
| 77 #define THREAD_STATE_FLAVOR_LIST_10_9 129 | 94 #define THREAD_STATE_FLAVOR_LIST_10_9 129 |
| 78 #endif | 95 #endif |
| 79 | 96 |
| 80 #endif // CRASHPAD_COMPAT_MAC_MACH_MACH_H_ | 97 #endif // CRASHPAD_COMPAT_MAC_MACH_MACH_H_ |
| OLD | NEW |