Patch android-21 with aarch64 <sys/user.h> fixes.

This makes the files match (AOSP ToT post-M) bionic.

Bug: http://b/23377194
Change-Id: Ie72614612fbe49c4250ca1383d1d224e8bff62dc
This commit is contained in:
Elliott Hughes
2015-08-25 18:43:20 -07:00
parent 07ddfb0edf
commit 2e60272c03
2 changed files with 14 additions and 8 deletions

View File

@@ -82,12 +82,6 @@ typedef struct ucontext {
#define NGREG 34 /* x0..x30 + sp + pc + pstate */
typedef unsigned long greg_t;
typedef greg_t gregset_t[NGREG];
struct user_fpsimd_struct {
long double vregs[32];
uint32_t fpsr;
uint32_t fpcr;
};
typedef struct user_fpsimd_struct fpregset_t;
#include <asm/sigcontext.h>

View File

@@ -30,11 +30,13 @@
#define _SYS_USER_H_
#include <sys/cdefs.h>
#include <limits.h> /* For PAGE_SIZE. */
#include <stddef.h> /* For size_t. */
__BEGIN_DECLS
#define PAGE_SIZE 4096
#define PAGE_MASK (~(PAGE_SIZE - 1))
#if __i386__
struct user_fpregs_struct {
@@ -230,7 +232,17 @@ struct user {
#elif defined(__aarch64__)
// There are no user structures for 64 bit arm.
struct user_regs_struct {
uint64_t regs[31];
uint64_t sp;
uint64_t pc;
uint64_t pstate;
};
struct user_fpsimd_struct {
__uint128_t vregs[32];
uint32_t fpsr;
uint32_t fpcr;
};
#else