diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-04-13 17:43:59 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 19:31:06 +0100 |
commit | 3c37026d43c47bec4710cbda286f4a17f416f5e6 (patch) | |
tree | 8bf206dc3ee4337ac9839c0e9e26ec4513996670 /arch/mips/kernel/linux32.c | |
parent | 38551576a35f1b48b6b359470d6e876c5b671ab6 (diff) | |
download | kernel_samsung_smdk4412-3c37026d43c47bec4710cbda286f4a17f416f5e6.zip kernel_samsung_smdk4412-3c37026d43c47bec4710cbda286f4a17f416f5e6.tar.gz kernel_samsung_smdk4412-3c37026d43c47bec4710cbda286f4a17f416f5e6.tar.bz2 |
NPTL, round one.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/linux32.c')
-rw-r--r-- | arch/mips/kernel/linux32.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index e8e886d..330cf84 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -1468,3 +1468,30 @@ sysn32_rt_sigtimedwait(const sigset_t __user *uthese, } return sys_rt_sigtimedwait(uthese, uinfo, uts, sigsetsize); } + +save_static_function(sys32_clone); +__attribute_used__ noinline static int +_sys32_clone(nabi_no_regargs struct pt_regs regs) +{ + unsigned long clone_flags; + unsigned long newsp; + int __user *parent_tidptr, *child_tidptr; + + clone_flags = regs.regs[4]; + newsp = regs.regs[5]; + if (!newsp) + newsp = regs.regs[29]; + parent_tidptr = (int *) regs.regs[6]; + + /* Use __dummy4 instead of getting it off the stack, so that + syscall() works. */ + child_tidptr = (int __user *) __dummy4; + return do_fork(clone_flags, newsp, ®s, 0, + parent_tidptr, child_tidptr); +} + +extern asmlinkage void sys_set_thread_area(u32 addr); +asmlinkage void sys32_set_thread_area(u32 addr) +{ + sys_set_thread_area(AA(addr)); +} |