H. Peter Anvin | f28f0c2 | 2012-02-19 07:38:43 -0800 | [diff] [blame] | 1 | #ifndef _ASM_X86_SIGHANDLING_H |
| 2 | #define _ASM_X86_SIGHANDLING_H |
| 3 | |
| 4 | #include <linux/compiler.h> |
| 5 | #include <linux/ptrace.h> |
| 6 | #include <linux/signal.h> |
| 7 | |
| 8 | #include <asm/processor-flags.h> |
| 9 | |
Jiri Olsa | 5e219b3 | 2013-05-01 17:25:41 +0200 | [diff] [blame] | 10 | #define FIX_EFLAGS (X86_EFLAGS_AC | X86_EFLAGS_OF | \ |
H. Peter Anvin | f28f0c2 | 2012-02-19 07:38:43 -0800 | [diff] [blame] | 11 | X86_EFLAGS_DF | X86_EFLAGS_TF | X86_EFLAGS_SF | \ |
| 12 | X86_EFLAGS_ZF | X86_EFLAGS_AF | X86_EFLAGS_PF | \ |
Jiri Olsa | 5e219b3 | 2013-05-01 17:25:41 +0200 | [diff] [blame] | 13 | X86_EFLAGS_CF | X86_EFLAGS_RF) |
H. Peter Anvin | f28f0c2 | 2012-02-19 07:38:43 -0800 | [diff] [blame] | 14 | |
| 15 | void signal_fault(struct pt_regs *regs, void __user *frame, char *where); |
| 16 | |
H. Peter Anvin | 8513942 | 2012-02-19 07:43:09 -0800 | [diff] [blame] | 17 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, |
| 18 | unsigned long *pax); |
| 19 | int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, |
| 20 | struct pt_regs *regs, unsigned long mask); |
| 21 | |
H. Peter Anvin | f28f0c2 | 2012-02-19 07:38:43 -0800 | [diff] [blame] | 22 | #endif /* _ASM_X86_SIGHANDLING_H */ |