Add greg_t for arm64.
This was already present for the other architectures. I think we skipped this because glibc seems to have an incorrect definition (int rather than long), but the kernel has the sane definition (just not in a uapi header). Change-Id: I0d47a424b505804389853dd8632693dad55a3907
This commit is contained in:
@@ -78,6 +78,10 @@ typedef struct ucontext {
|
|||||||
|
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
|
|
||||||
|
#define NGREG 34 /* x0..x30 + sp + pc + pstate */
|
||||||
|
typedef unsigned long greg_t;
|
||||||
|
typedef greg_t gregset_t[NGREG];
|
||||||
|
|
||||||
#include <asm/sigcontext.h>
|
#include <asm/sigcontext.h>
|
||||||
typedef struct sigcontext mcontext_t;
|
typedef struct sigcontext mcontext_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user