blob: 2fcbd6f33ef74b22b9a3245261a17f13ca6b8855 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_SIGHANDLING_H
3#define _ASM_X86_SIGHANDLING_H
4
5#include <linux/compiler.h>
6#include <linux/ptrace.h>
7#include <linux/signal.h>
8
9#include <asm/processor-flags.h>
10
11#define FIX_EFLAGS (X86_EFLAGS_AC | X86_EFLAGS_OF | \
12 X86_EFLAGS_DF | X86_EFLAGS_TF | X86_EFLAGS_SF | \
13 X86_EFLAGS_ZF | X86_EFLAGS_AF | X86_EFLAGS_PF | \
14 X86_EFLAGS_CF | X86_EFLAGS_RF)
15
16void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
17int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
18 struct pt_regs *regs, unsigned long mask);
19
David Brazdil0f672f62019-12-10 10:32:29 +000020
21#ifdef CONFIG_X86_X32_ABI
22asmlinkage long sys32_x32_rt_sigreturn(void);
23#endif
24
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000025#endif /* _ASM_X86_SIGHANDLING_H */