Merge remote-tracking branch 'asoc/topic/pcm512x' into asoc-next
[sfrench/cifs-2.6.git] / arch / metag / include / uapi / asm / sigcontext.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _ASM_METAG_SIGCONTEXT_H
3 #define _ASM_METAG_SIGCONTEXT_H
4
5 #include <asm/ptrace.h>
6
7 /*
8  * In a sigcontext structure we need to store the active state of the
9  * user process so that it does not get trashed when we call the signal
10  * handler. That not really the same as a user context that we are
11  * going to store on syscall etc.
12  */
13 struct sigcontext {
14         struct user_gp_regs regs;       /* needs to be first */
15
16         /*
17          * Catch registers describing a memory fault.
18          * If USER_GP_REGS_STATUS_CATCH_BIT is set in regs.status then catch
19          * buffers have been saved and will be replayed on sigreturn.
20          * Clear that bit to discard the catch state instead of replaying it.
21          */
22         struct user_cb_regs cb;
23
24         /*
25          * Read pipeline state. This will get restored on sigreturn.
26          */
27         struct user_rp_state rp;
28
29         unsigned long oldmask;
30 };
31
32 #endif