Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / x86 / include / asm / fpu / signal.h
blob44bbc39a57b30be9bf6b71103d5a162e0c61c0e3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * x86 FPU signal frame handling methods:
4 */
5 #ifndef _ASM_X86_FPU_SIGNAL_H
6 #define _ASM_X86_FPU_SIGNAL_H
8 #ifdef CONFIG_X86_64
9 # include <uapi/asm/sigcontext.h>
10 # include <asm/user32.h>
11 struct ksignal;
12 int ia32_setup_rt_frame(int sig, struct ksignal *ksig,
13 compat_sigset_t *set, struct pt_regs *regs);
14 int 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
23 extern void convert_from_fxsr(struct user_i387_ia32_struct *env,
24 struct task_struct *tsk);
25 extern void convert_to_fxsr(struct task_struct *tsk,
26 const struct user_i387_ia32_struct *env);
28 unsigned long
29 fpu__alloc_mathframe(unsigned long sp, int ia32_frame,
30 unsigned long *buf_fx, unsigned long *size);
32 extern void fpu__init_prepare_fx_sw_frame(void);
34 #endif /* _ASM_X86_FPU_SIGNAL_H */