aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/sys-i386/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/sys-i386/signal.c')
-rw-r--r--arch/um/sys-i386/signal.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/um/sys-i386/signal.c b/arch/um/sys-i386/signal.c
index 187ea27536bd..a9fe8d6f72c3 100644
--- a/arch/um/sys-i386/signal.c
+++ b/arch/um/sys-i386/signal.c
@@ -12,7 +12,6 @@
12#include "frame_kern.h" 12#include "frame_kern.h"
13#include "sigcontext.h" 13#include "sigcontext.h"
14#include "registers.h" 14#include "registers.h"
15#include "mode.h"
16#include "skas.h" 15#include "skas.h"
17 16
18void copy_sc(union uml_pt_regs *regs, void *from) 17void copy_sc(union uml_pt_regs *regs, void *from)
@@ -108,20 +107,13 @@ int copy_sc_to_user_skas(struct sigcontext __user *to, struct _fpstate __user *t
108 107
109static int copy_sc_from_user(struct pt_regs *to, void __user *from) 108static int copy_sc_from_user(struct pt_regs *to, void __user *from)
110{ 109{
111 int ret; 110 return copy_sc_from_user_skas(to, from);
112
113 ret = CHOOSE_MODE(copy_sc_from_user_tt(UPT_SC(&to->regs), from,
114 sizeof(struct _fpstate)),
115 copy_sc_from_user_skas(to, from));
116 return ret;
117} 111}
118 112
119static int copy_sc_to_user(struct sigcontext __user *to, struct _fpstate __user *fp, 113static int copy_sc_to_user(struct sigcontext __user *to, struct _fpstate __user *fp,
120 struct pt_regs *from, unsigned long sp) 114 struct pt_regs *from, unsigned long sp)
121{ 115{
122 return CHOOSE_MODE(copy_sc_to_user_tt(to, fp, UPT_SC(&from->regs), 116 return copy_sc_to_user_skas(to, fp, from, sp);
123 sizeof(*fp), sp),
124 copy_sc_to_user_skas(to, fp, from, sp));
125} 117}
126 118
127static int copy_ucontext_to_user(struct ucontext __user *uc, struct _fpstate __user *fp, 119static int copy_ucontext_to_user(struct ucontext __user *uc, struct _fpstate __user *fp,