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