2008-02-08 15:10:00 -05:00
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
struct sigframe {
|
2005-09-09 12:18:14 -04:00
|
|
|
char __user *pretcode;
|
2005-04-16 18:20:36 -04:00
|
|
|
int sig;
|
|
|
|
struct sigcontext sc;
|
2008-07-29 13:29:21 -04:00
|
|
|
/*
|
|
|
|
* fpstate is unused. fpstate is moved/allocated after
|
|
|
|
* retcode[] below. This movement allows to have the FP state and the
|
|
|
|
* future state extensions (xsave) stay together.
|
|
|
|
* And at the same time retaining the unused fpstate, prevents changing
|
|
|
|
* the offset of extramask[] in the sigframe and thus prevent any
|
|
|
|
* legacy application accessing/modifying it.
|
|
|
|
*/
|
|
|
|
struct _fpstate fpstate_unused;
|
2005-04-16 18:20:36 -04:00
|
|
|
unsigned long extramask[_NSIG_WORDS-1];
|
|
|
|
char retcode[8];
|
2008-07-29 13:29:21 -04:00
|
|
|
/* fp state follows here */
|
2005-04-16 18:20:36 -04:00
|
|
|
};
|
|
|
|
|
2008-02-08 15:10:00 -05:00
|
|
|
struct rt_sigframe {
|
2005-09-09 12:18:14 -04:00
|
|
|
char __user *pretcode;
|
2005-04-16 18:20:36 -04:00
|
|
|
int sig;
|
2005-09-09 12:18:14 -04:00
|
|
|
struct siginfo __user *pinfo;
|
|
|
|
void __user *puc;
|
2005-04-16 18:20:36 -04:00
|
|
|
struct siginfo info;
|
|
|
|
struct ucontext uc;
|
|
|
|
char retcode[8];
|
2008-07-29 13:29:21 -04:00
|
|
|
/* fp state follows here */
|
2005-04-16 18:20:36 -04:00
|
|
|
};
|
2008-02-08 15:10:00 -05:00
|
|
|
#else
|
|
|
|
struct rt_sigframe {
|
|
|
|
char __user *pretcode;
|
|
|
|
struct ucontext uc;
|
|
|
|
struct siginfo info;
|
2008-07-29 13:29:21 -04:00
|
|
|
/* fp state follows here */
|
2008-02-08 15:10:00 -05:00
|
|
|
};
|
2008-07-29 01:48:54 -04:00
|
|
|
|
|
|
|
int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
|
|
|
sigset_t *set, struct pt_regs *regs);
|
|
|
|
int ia32_setup_frame(int sig, struct k_sigaction *ka,
|
|
|
|
sigset_t *set, struct pt_regs *regs);
|
2008-02-08 15:10:00 -05:00
|
|
|
#endif
|