diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-09-12 17:03:31 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-14 15:35:52 +0200 |
commit | e6babb6b7fed93c93f8fc5ef8ebd3a474fc2df3e (patch) | |
tree | b023487fb2b29e22663c69afc065c7a26f958760 /arch/x86/kernel/signal_32.c | |
parent | 2ba48e16e78216bb5b9fd08a088bfefda478df25 (diff) | |
download | kernel_samsung_smdk4412-e6babb6b7fed93c93f8fc5ef8ebd3a474fc2df3e.zip kernel_samsung_smdk4412-e6babb6b7fed93c93f8fc5ef8ebd3a474fc2df3e.tar.gz kernel_samsung_smdk4412-e6babb6b7fed93c93f8fc5ef8ebd3a474fc2df3e.tar.bz2 |
x86: signal: introduce do_rt_sigreturn()
introduce do_rt_sigreturn(), to collect common part of sys_rt_sigreturn().
No change in functionality intended.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index d433861..da3cf32 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c @@ -215,9 +215,8 @@ badframe: return 0; } -asmlinkage int sys_rt_sigreturn(unsigned long __unused) +static long do_rt_sigreturn(struct pt_regs *regs) { - struct pt_regs *regs = (struct pt_regs *)&__unused; struct rt_sigframe __user *frame; unsigned long ax; sigset_t set; @@ -243,10 +242,17 @@ asmlinkage int sys_rt_sigreturn(unsigned long __unused) return ax; badframe: - signal_fault(regs, frame, "rt sigreturn"); + signal_fault(regs, frame, "rt_sigreturn"); return 0; } +asmlinkage int sys_rt_sigreturn(unsigned long __unused) +{ + struct pt_regs *regs = (struct pt_regs *)&__unused; + + return do_rt_sigreturn(regs); +} + /* * Set up a signal frame. */ |