2008-02-08 13:10:00 -07:00
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
struct sigframe {
|
2005-09-09 09:18:14 -07:00
|
|
|
char __user *pretcode;
|
2005-04-16 15:20:36 -07:00
|
|
|
int sig;
|
|
|
|
struct sigcontext sc;
|
2008-07-29 10:29:21 -07: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 15:20:36 -07:00
|
|
|
unsigned long extramask[_NSIG_WORDS-1];
|
|
|
|
char retcode[8];
|
2008-07-29 10:29:21 -07:00
|
|
|
/* fp state follows here */
|
2005-04-16 15:20:36 -07:00
|
|
|
};
|
|
|
|
|
2008-02-08 13:10:00 -07:00
|
|
|
struct rt_sigframe {
|
2005-09-09 09:18:14 -07:00
|
|
|
char __user *pretcode;
|
2005-04-16 15:20:36 -07:00
|
|
|
int sig;
|
2005-09-09 09:18:14 -07:00
|
|
|
struct siginfo __user *pinfo;
|
|
|
|
void __user *puc;
|
2005-04-16 15:20:36 -07:00
|
|
|
struct siginfo info;
|
|
|
|
struct ucontext uc;
|
|
|
|
char retcode[8];
|
2008-07-29 10:29:21 -07:00
|
|
|
/* fp state follows here */
|
2005-04-16 15:20:36 -07:00
|
|
|
};
|
2008-02-08 13:10:00 -07:00
|
|
|
#else
|
|
|
|
struct rt_sigframe {
|
|
|
|
char __user *pretcode;
|
|
|
|
struct ucontext uc;
|
|
|
|
struct siginfo info;
|
2008-07-29 10:29:21 -07:00
|
|
|
/* fp state follows here */
|
2008-02-08 13:10:00 -07:00
|
|
|
};
|
2008-07-28 22:48:54 -07: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 13:10:00 -07:00
|
|
|
#endif
|