sigcontext.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__ASM_SIGCONTEXT_H
20#define _UAPI__ASM_SIGCONTEXT_H
21#include <linux/types.h>
22struct sigcontext {
23  __u64 fault_address;
24  __u64 regs[31];
25  __u64 sp;
26  __u64 pc;
27  __u64 pstate;
28  __u8 __reserved[4096] __attribute__((__aligned__(16)));
29};
30struct _aarch64_ctx {
31  __u32 magic;
32  __u32 size;
33};
34#define FPSIMD_MAGIC 0x46508001
35struct fpsimd_context {
36  struct _aarch64_ctx head;
37  __u32 fpsr;
38  __u32 fpcr;
39  __uint128_t vregs[32];
40};
41#define ESR_MAGIC 0x45535201
42struct esr_context {
43  struct _aarch64_ctx head;
44  __u64 esr;
45};
46#endif
47