diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:26:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | 6aa802ce6acc9b1f0b34114b3f7c21c84872cc3a (patch) | |
tree | 74523303349693ef482dec4a1d803566b69c6abd /arch/um/sys-i386/signal.c | |
parent | 4c9e13851315a25a705e7a686116e491041ca228 (diff) |
uml: throw out CHOOSE_MODE
The next stage after removing code which depends on CONFIG_MODE_TT is removing
the CHOOSE_MODE abstraction, which provided both compile-time and run-time
branching to either tt-mode or skas-mode code.
This patch removes choose-mode.h and all inclusions of it, and replaces all
CHOOSE_MODE invocations with the skas branch. This leaves a number of trivial
functions which will be dealt with in a later patch.
There are some changes in the uaccess and tls support which go somewhat beyond
this and eliminate some of the now-redundant functions.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/sys-i386/signal.c')
-rw-r--r-- | arch/um/sys-i386/signal.c | 12 |
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 | ||
18 | void copy_sc(union uml_pt_regs *regs, void *from) | 17 | void 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 | ||
109 | static int copy_sc_from_user(struct pt_regs *to, void __user *from) | 108 | static 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 | ||
119 | static int copy_sc_to_user(struct sigcontext __user *to, struct _fpstate __user *fp, | 113 | static 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 | ||
127 | static int copy_ucontext_to_user(struct ucontext __user *uc, struct _fpstate __user *fp, | 119 | static int copy_ucontext_to_user(struct ucontext __user *uc, struct _fpstate __user *fp, |