From 8e4d371091e5738346f5c6ad395b8487c2a5ec67 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 19 Sep 2014 10:31:49 -0700 Subject: [PATCH] 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 --- libc/include/sys/ucontext.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/include/sys/ucontext.h b/libc/include/sys/ucontext.h index b8d4d5812..dd2a0bba6 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; -- 2.11.0