Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: compat/mac/mach/mach.h

Issue 1001733003: compat/mac: 10.6 SDK compatibility for pre-Xcode 4.2 10.6 SDK (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698