Skip to content

Commit 72e94c4

Browse files
committed
[Android] Roll back to r10e.
BUG=599327 [email protected] [email protected] Review URL: https://codereview.chromium.org/2042873003 .
1 parent 7933830 commit 72e94c4

File tree

1 file changed

+21
-5
lines changed
  • src/common/android/include/sys

1 file changed

+21
-5
lines changed

src/common/android/include/sys/user.h

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@
3434
// glibc) and therefore avoid doing otherwise awkward #ifdefs in the code.
3535
// The following quirks are currently handled by this file:
3636
// - 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.
3838
// - Other platforms: Just use the Android NDK unchanged.
3939

4040
// TODO(primiano): remove these changes after Chromium has stably rolled to
4141
// an NDK with the appropriate fixes.
4242

43-
#ifdef __aarch64__
44-
#include <stdint.h>
45-
#endif // __aarch64__
46-
4743
#include_next <sys/user.h>
4844

4945
#ifdef __i386__
@@ -56,4 +52,24 @@ typedef struct user_fxsr_struct user_fpxregs_struct;
5652
#endif // __cplusplus
5753
#endif // __i386__
5854

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+
5975
#endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H

0 commit comments

Comments
 (0)