-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/fpu: Split out fpu/signal.h from fpu/internal.h for signal frame …
…handling functions Most of the FPU does not use them, so split it out and include them in signal.c and ia32_signal.c Also fix header file dependency assumption in fpu/core.c. Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
- Loading branch information
Ingo Molnar
committed
May 19, 2015
1 parent
05012c1
commit fcbc99c
Showing
7 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* x86 FPU signal frame handling methods: | ||
*/ | ||
#ifndef _ASM_X86_FPU_SIGNAL_H | ||
#define _ASM_X86_FPU_SIGNAL_H | ||
|
||
#ifdef CONFIG_X86_64 | ||
# include <asm/sigcontext32.h> | ||
# include <asm/user32.h> | ||
struct ksignal; | ||
int ia32_setup_rt_frame(int sig, struct ksignal *ksig, | ||
compat_sigset_t *set, struct pt_regs *regs); | ||
int ia32_setup_frame(int sig, struct ksignal *ksig, | ||
compat_sigset_t *set, struct pt_regs *regs); | ||
#else | ||
# define user_i387_ia32_struct user_i387_struct | ||
# define user32_fxsr_struct user_fxsr_struct | ||
# define ia32_setup_frame __setup_frame | ||
# define ia32_setup_rt_frame __setup_rt_frame | ||
#endif | ||
|
||
extern void convert_from_fxsr(struct user_i387_ia32_struct *env, | ||
struct task_struct *tsk); | ||
extern void convert_to_fxsr(struct task_struct *tsk, | ||
const struct user_i387_ia32_struct *env); | ||
|
||
unsigned long | ||
fpu__alloc_mathframe(unsigned long sp, int ia32_frame, | ||
unsigned long *buf_fx, unsigned long *size); | ||
|
||
#endif /* _ASM_X86_FPU_SIGNAL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters