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

Side by Side Diff: src/common/android/include/sys/user.h

Issue 2042873003: [Android] Roll back to r10e. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 6 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 (c) 2012, Google Inc. 1 // Copyright (c) 2012, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #ifndef GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H 30 #ifndef GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H
31 #define GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H 31 #define GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H
32 32
33 // The purpose of this file is to glue the mismatching headers (Android NDK vs 33 // The purpose of this file is to glue the mismatching headers (Android NDK vs
34 // glibc) and therefore avoid doing otherwise awkward #ifdefs in the code. 34 // glibc) and therefore avoid doing otherwise awkward #ifdefs in the code.
35 // The following quirks are currently handled by this file: 35 // The following quirks are currently handled by this file:
36 // - i386: Use the Android NDK but alias user_fxsr_struct > user_fpxregs_struct. 36 // - i386: Use the Android NDK but alias user_fxsr_struct > user_fpxregs_struct.
37 // - aarch64: Add missing <stdint.h> include. 37 // - aarch64: Add missing user_regs_struct and user_fpsimd_struct structs.
38 // - Other platforms: Just use the Android NDK unchanged. 38 // - Other platforms: Just use the Android NDK unchanged.
39 39
40 // TODO(primiano): remove these changes after Chromium has stably rolled to 40 // TODO(primiano): remove these changes after Chromium has stably rolled to
41 // an NDK with the appropriate fixes. 41 // an NDK with the appropriate fixes.
42 42
43 #ifdef __aarch64__
44 #include <stdint.h>
45 #endif // __aarch64__
46
47 #include_next <sys/user.h> 43 #include_next <sys/user.h>
48 44
49 #ifdef __i386__ 45 #ifdef __i386__
50 #ifdef __cplusplus 46 #ifdef __cplusplus
51 extern "C" { 47 extern "C" {
52 #endif // __cplusplus 48 #endif // __cplusplus
53 typedef struct user_fxsr_struct user_fpxregs_struct; 49 typedef struct user_fxsr_struct user_fpxregs_struct;
54 #ifdef __cplusplus 50 #ifdef __cplusplus
55 } // extern "C" 51 } // extern "C"
56 #endif // __cplusplus 52 #endif // __cplusplus
57 #endif // __i386__ 53 #endif // __i386__
58 54
55 #ifdef __aarch64__
56 #ifdef __cplusplus
57 extern "C" {
58 #endif // __cplusplus
59 struct user_regs_struct {
60 __u64 regs[31];
61 __u64 sp;
62 __u64 pc;
63 __u64 pstate;
64 };
65 struct user_fpsimd_struct {
66 __uint128_t vregs[32];
67 __u32 fpsr;
68 __u32 fpcr;
69 };
70 #ifdef __cplusplus
71 } // extern "C"
72 #endif // __cplusplus
73 #endif // __aarch64__
74
59 #endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H 75 #endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_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