Merge branch 'for-3.4/drivers' of git://git.kernel.dk/linux-block
[pandora-kernel.git] / arch / x86 / include / asm / sighandling.h
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
10 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
11
12 #define __FIX_EFLAGS    (X86_EFLAGS_AC | X86_EFLAGS_OF | \
13                          X86_EFLAGS_DF | X86_EFLAGS_TF | X86_EFLAGS_SF | \
14                          X86_EFLAGS_ZF | X86_EFLAGS_AF | X86_EFLAGS_PF | \
15                          X86_EFLAGS_CF)
16
17 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
18
19 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
20                        unsigned long *pax);
21 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
22                      struct pt_regs *regs, unsigned long mask);
23
24 #endif /* _ASM_X86_SIGHANDLING_H */