1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _ASM_METAG_SIGCONTEXT_H
3 #define _ASM_METAG_SIGCONTEXT_H
5 #include <asm/ptrace.h>
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.
14 struct user_gp_regs regs; /* needs to be first */
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.
22 struct user_cb_regs cb;
25 * Read pipeline state. This will get restored on sigreturn.
27 struct user_rp_state rp;
29 unsigned long oldmask;