diff options
author | Elliott Hughes <enh@google.com> | 2014-09-19 10:31:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-10-29 11:56:59 -0700 |
commit | d0fb6a2940a43122f193be156ddff28c377e5163 (patch) | |
tree | dac7b40ed3ab7d5904cbee0024248ec9cc9ef60a /libc/include | |
parent | ab4d5cf24220f3b5d8f53b2b3bd635f23dcc9bc5 (diff) | |
download | bionic-d0fb6a2940a43122f193be156ddff28c377e5163.zip bionic-d0fb6a2940a43122f193be156ddff28c377e5163.tar.gz bionic-d0fb6a2940a43122f193be156ddff28c377e5163.tar.bz2 |
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
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/sys/ucontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <asm/sigcontext.h> typedef struct sigcontext mcontext_t; |