Commit 123a6347 authored by Harvey Harrison's avatar Harvey Harrison Committed by Ingo Molnar

x86: move struct definitions to unifed sigframe.h

[ tglx@linutronix.de: cleanup the other structs as well ]
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 2d19c458
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/suspend.h> #include <linux/suspend.h>
#include <asm/ucontext.h> #include <asm/ucontext.h>
#include "sigframe_32.h" #include "sigframe.h"
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/fixmap.h> #include <asm/fixmap.h>
#include <asm/processor.h> #include <asm/processor.h>
......
struct sigframe #ifdef CONFIG_X86_32
{ struct sigframe {
char __user *pretcode; char __user *pretcode;
int sig; int sig;
struct sigcontext sc; struct sigcontext sc;
...@@ -8,8 +8,7 @@ struct sigframe ...@@ -8,8 +8,7 @@ struct sigframe
char retcode[8]; char retcode[8];
}; };
struct rt_sigframe struct rt_sigframe {
{
char __user *pretcode; char __user *pretcode;
int sig; int sig;
struct siginfo __user *pinfo; struct siginfo __user *pinfo;
...@@ -19,3 +18,10 @@ struct rt_sigframe ...@@ -19,3 +18,10 @@ struct rt_sigframe
struct _fpstate fpstate; struct _fpstate fpstate;
char retcode[8]; char retcode[8];
}; };
#else
struct rt_sigframe {
char __user *pretcode;
struct ucontext uc;
struct siginfo info;
};
#endif
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/i387.h> #include <asm/i387.h>
#include <asm/vdso.h> #include <asm/vdso.h>
#include "sigframe_32.h" #include "sigframe.h"
#define DEBUG_SIG 0 #define DEBUG_SIG 0
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <asm/proto.h> #include <asm/proto.h>
#include <asm/ia32_unistd.h> #include <asm/ia32_unistd.h>
#include <asm/mce.h> #include <asm/mce.h>
#include "sigframe.h"
/* #define DEBUG_SIG 1 */ /* #define DEBUG_SIG 1 */
...@@ -58,14 +59,6 @@ sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss, ...@@ -58,14 +59,6 @@ sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
/* /*
* Do a signal return; undo the signal stack. * Do a signal return; undo the signal stack.
*/ */
struct rt_sigframe
{
char __user *pretcode;
struct ucontext uc;
struct siginfo info;
};
static int static int
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, unsigned long *prax) restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, unsigned long *prax)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment