]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/x86/include/asm/fpu/signal.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / x86 / include / asm / fpu / signal.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
fcbc99c4
IM
2/*
3 * x86 FPU signal frame handling methods:
4 */
5#ifndef _ASM_X86_FPU_SIGNAL_H
6#define _ASM_X86_FPU_SIGNAL_H
7
8#ifdef CONFIG_X86_64
decb4c41 9# include <uapi/asm/sigcontext.h>
fcbc99c4
IM
10# include <asm/user32.h>
11struct ksignal;
12int ia32_setup_rt_frame(int sig, struct ksignal *ksig,
13 compat_sigset_t *set, struct pt_regs *regs);
14int ia32_setup_frame(int sig, struct ksignal *ksig,
15 compat_sigset_t *set, struct pt_regs *regs);
16#else
17# define user_i387_ia32_struct user_i387_struct
18# define user32_fxsr_struct user_fxsr_struct
19# define ia32_setup_frame __setup_frame
20# define ia32_setup_rt_frame __setup_rt_frame
21#endif
22
68463510
DS
23#ifdef CONFIG_COMPAT
24int __copy_siginfo_to_user32(compat_siginfo_t __user *to,
25 const siginfo_t *from, bool x32_ABI);
26#endif
27
28
fcbc99c4
IM
29extern void convert_from_fxsr(struct user_i387_ia32_struct *env,
30 struct task_struct *tsk);
31extern void convert_to_fxsr(struct task_struct *tsk,
32 const struct user_i387_ia32_struct *env);
33
34unsigned long
35fpu__alloc_mathframe(unsigned long sp, int ia32_frame,
36 unsigned long *buf_fx, unsigned long *size);
37
b992c660
IM
38extern void fpu__init_prepare_fx_sw_frame(void);
39
fcbc99c4 40#endif /* _ASM_X86_FPU_SIGNAL_H */