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