diff options
Diffstat (limited to 'arch/arm64/include/asm/sigcontext.h')
-rw-r--r-- | arch/arm64/include/asm/sigcontext.h | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/arch/arm64/include/asm/sigcontext.h b/arch/arm64/include/asm/sigcontext.h index 573cec778819..dca1094acc74 100644 --- a/arch/arm64/include/asm/sigcontext.h +++ b/arch/arm64/include/asm/sigcontext.h | |||
@@ -16,45 +16,9 @@ | |||
16 | #ifndef __ASM_SIGCONTEXT_H | 16 | #ifndef __ASM_SIGCONTEXT_H |
17 | #define __ASM_SIGCONTEXT_H | 17 | #define __ASM_SIGCONTEXT_H |
18 | 18 | ||
19 | #include <linux/types.h> | 19 | #include <uapi/asm/sigcontext.h> |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * Signal context structure - contains all info to do with the state | ||
23 | * before the signal handler was invoked. | ||
24 | */ | ||
25 | struct sigcontext { | ||
26 | __u64 fault_address; | ||
27 | /* AArch64 registers */ | ||
28 | __u64 regs[31]; | ||
29 | __u64 sp; | ||
30 | __u64 pc; | ||
31 | __u64 pstate; | ||
32 | /* 4K reserved for FP/SIMD state and future expansion */ | ||
33 | __u8 __reserved[4096] __attribute__((__aligned__(16))); | ||
34 | }; | ||
35 | |||
36 | /* | ||
37 | * Header to be used at the beginning of structures extending the user | ||
38 | * context. Such structures must be placed after the rt_sigframe on the stack | ||
39 | * and be 16-byte aligned. The last structure must be a dummy one with the | ||
40 | * magic and size set to 0. | ||
41 | */ | ||
42 | struct _aarch64_ctx { | ||
43 | __u32 magic; | ||
44 | __u32 size; | ||
45 | }; | ||
46 | |||
47 | #define FPSIMD_MAGIC 0x46508001 | ||
48 | |||
49 | struct fpsimd_context { | ||
50 | struct _aarch64_ctx head; | ||
51 | __u32 fpsr; | ||
52 | __u32 fpcr; | ||
53 | __uint128_t vregs[32]; | ||
54 | }; | ||
55 | |||
56 | #ifdef __KERNEL__ | ||
57 | /* | ||
58 | * Auxiliary context saved in the sigcontext.__reserved array. Not exported to | 22 | * Auxiliary context saved in the sigcontext.__reserved array. Not exported to |
59 | * user space as it will change with the addition of new context. User space | 23 | * user space as it will change with the addition of new context. User space |
60 | * should check the magic/size information. | 24 | * should check the magic/size information. |
@@ -65,5 +29,3 @@ struct aux_context { | |||
65 | struct _aarch64_ctx end; | 29 | struct _aarch64_ctx end; |
66 | }; | 30 | }; |
67 | #endif | 31 | #endif |
68 | |||
69 | #endif | ||