blob: be2464eaede6edfe6d45135f7a64bf34682f2dc6 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI__ASM_SIGCONTEXT_H
20#define _UAPI__ASM_SIGCONTEXT_H
21#include <linux/types.h>
22struct sigcontext {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u64 fault_address;
24 __u64 regs[31];
25 __u64 sp;
26 __u64 pc;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u64 pstate;
28 __u8 __reserved[4096] __attribute__((__aligned__(16)));
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
30struct _aarch64_ctx {
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 magic;
32 __u32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -070033};
34#define FPSIMD_MAGIC 0x46508001
Ben Cheng655a7c02013-10-16 16:09:24 -070035struct fpsimd_context {
Tao Baod7db5942015-01-28 10:07:51 -080036 struct _aarch64_ctx head;
37 __u32 fpsr;
38 __u32 fpcr;
Tao Baod7db5942015-01-28 10:07:51 -080039 __uint128_t vregs[32];
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070041#define ESR_MAGIC 0x45535201
42struct esr_context {
Tao Baod7db5942015-01-28 10:07:51 -080043 struct _aarch64_ctx head;
44 __u64 esr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070045};
Christopher Ferris1308ad32017-11-14 17:32:13 -080046#define EXTRA_MAGIC 0x45585401
47struct extra_context {
48 struct _aarch64_ctx head;
49 __u64 datap;
50 __u32 size;
51 __u32 __reserved[3];
52};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080053#endif