diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-11-21 17:38:25 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-23 10:50:58 +0100 |
commit | 666ac7be049ec290625e65d5922ff59f7bdec527 (patch) | |
tree | 68b156d87aa32a55e231bdb547d616e8d7d76f23 /arch/x86/kernel/signal_32.c | |
parent | 5c9b3a0c7b8be3cdef3d7418f0a49127e7cdc998 (diff) | |
download | op-kernel-dev-666ac7be049ec290625e65d5922ff59f7bdec527.zip op-kernel-dev-666ac7be049ec290625e65d5922ff59f7bdec527.tar.gz |
x86: signal: cosmetic unification of sys_sigaltstack()
Impact: cleanup
Add #ifdef directive for unification.
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index 0ff8d87..d990988 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c @@ -125,6 +125,7 @@ sys_sigaction(int sig, const struct old_sigaction __user *act, return ret; } +#ifdef CONFIG_X86_32 asmlinkage int sys_sigaltstack(unsigned long bx) { /* @@ -137,6 +138,14 @@ asmlinkage int sys_sigaltstack(unsigned long bx) return do_sigaltstack(uss, uoss, regs->sp); } +#else /* !CONFIG_X86_32 */ +asmlinkage long +sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss, + struct pt_regs *regs) +{ + return do_sigaltstack(uss, uoss, regs->sp); +} +#endif /* CONFIG_X86_32 */ #define COPY(x) { \ err |= __get_user(regs->x, &sc->x); \ |