diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-26 22:11:53 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:15:54 -0500 |
commit | e6a6d210e0c2ad95047e2922394fb6e73bf438ab (patch) | |
tree | 9fc39ee8f5c60dc13159fa0d6e31073ec426fcc3 | |
parent | eb2f256682e5af4b890d1f3cce4a4d4b62ffa655 (diff) |
cris: kill weird arguments of sys_{rt_,}sigreturn()
It's cheaper to call current_pt_regs() than bother fetching the damn
thing from stack.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/cris/arch-v10/kernel/signal.c | 12 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/signal.c | 12 |
2 files changed, 8 insertions, 16 deletions
diff --git a/arch/cris/arch-v10/kernel/signal.c b/arch/cris/arch-v10/kernel/signal.c index 090e9c64408b..61ce6273a895 100644 --- a/arch/cris/arch-v10/kernel/signal.c +++ b/arch/cris/arch-v10/kernel/signal.c | |||
@@ -101,11 +101,9 @@ badframe: | |||
101 | return 1; | 101 | return 1; |
102 | } | 102 | } |
103 | 103 | ||
104 | /* Define dummy arguments to be able to reach the regs argument. */ | 104 | asmlinkage int sys_sigreturn(void) |
105 | |||
106 | asmlinkage int sys_sigreturn(long r10, long r11, long r12, long r13, long mof, | ||
107 | long srp, struct pt_regs *regs) | ||
108 | { | 105 | { |
106 | struct pt_regs *regs = current_pt_regs(); | ||
109 | struct sigframe __user *frame = (struct sigframe *)rdusp(); | 107 | struct sigframe __user *frame = (struct sigframe *)rdusp(); |
110 | sigset_t set; | 108 | sigset_t set; |
111 | 109 | ||
@@ -139,11 +137,9 @@ badframe: | |||
139 | return 0; | 137 | return 0; |
140 | } | 138 | } |
141 | 139 | ||
142 | /* Define dummy arguments to be able to reach the regs argument. */ | 140 | asmlinkage int sys_rt_sigreturn(void) |
143 | |||
144 | asmlinkage int sys_rt_sigreturn(long r10, long r11, long r12, long r13, | ||
145 | long mof, long srp, struct pt_regs *regs) | ||
146 | { | 141 | { |
142 | struct pt_regs *regs = current_pt_regs(); | ||
147 | struct rt_sigframe __user *frame = (struct rt_sigframe *)rdusp(); | 143 | struct rt_sigframe __user *frame = (struct rt_sigframe *)rdusp(); |
148 | sigset_t set; | 144 | sigset_t set; |
149 | 145 | ||
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c index cee740732d1f..01d1375c9004 100644 --- a/arch/cris/arch-v32/kernel/signal.c +++ b/arch/cris/arch-v32/kernel/signal.c | |||
@@ -82,11 +82,9 @@ badframe: | |||
82 | return 1; | 82 | return 1; |
83 | } | 83 | } |
84 | 84 | ||
85 | /* Define some dummy arguments to be able to reach the regs argument. */ | 85 | asmlinkage int sys_sigreturn(void) |
86 | asmlinkage int | ||
87 | sys_sigreturn(long r10, long r11, long r12, long r13, long mof, long srp, | ||
88 | struct pt_regs *regs) | ||
89 | { | 86 | { |
87 | struct pt_regs *regs = current_pt_regs(); | ||
90 | sigset_t set; | 88 | sigset_t set; |
91 | struct signal_frame __user *frame; | 89 | struct signal_frame __user *frame; |
92 | unsigned long oldspc = regs->spc; | 90 | unsigned long oldspc = regs->spc; |
@@ -125,11 +123,9 @@ badframe: | |||
125 | return 0; | 123 | return 0; |
126 | } | 124 | } |
127 | 125 | ||
128 | /* Define some dummy variables to be able to reach the regs argument. */ | 126 | asmlinkage int sys_rt_sigreturn(void) |
129 | asmlinkage int | ||
130 | sys_rt_sigreturn(long r10, long r11, long r12, long r13, long mof, long srp, | ||
131 | struct pt_regs *regs) | ||
132 | { | 127 | { |
128 | struct pt_regs *regs = current_pt_regs(); | ||
133 | sigset_t set; | 129 | sigset_t set; |
134 | struct rt_signal_frame __user *frame; | 130 | struct rt_signal_frame __user *frame; |
135 | unsigned long oldspc = regs->spc; | 131 | unsigned long oldspc = regs->spc; |