From d0fb6a2940a43122f193be156ddff28c377e5163 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 19 Sep 2014 10:31:49 -0700 Subject: 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). (cherry picked from commit 8e4d371091e5738346f5c6ad395b8487c2a5ec67) Bug: 18172268 Change-Id: I22d13fdeb6431ea122dd028a229782dcaf2286b2 --- libc/include/sys/ucontext.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/include') diff --git a/libc/include/sys/ucontext.h b/libc/include/sys/ucontext.h index b8d4d58..dd2a0bb 100644 --- a/libc/include/sys/ucontext.h +++ b/libc/include/sys/ucontext.h @@ -78,6 +78,10 @@ typedef struct ucontext { #elif defined(__aarch64__) +#define NGREG 34 /* x0..x30 + sp + pc + pstate */ +typedef unsigned long greg_t; +typedef greg_t gregset_t[NGREG]; + #include typedef struct sigcontext mcontext_t; -- cgit v1.1