aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/kernel/process.c')
-rw-r--r--arch/tile/kernel/process.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c
index da6e4d78da6e..58f8fd1f0bc2 100644
--- a/arch/tile/kernel/process.c
+++ b/arch/tile/kernel/process.c
@@ -594,51 +594,6 @@ SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
594 parent_tidptr, child_tidptr); 594 parent_tidptr, child_tidptr);
595} 595}
596 596
597/*
598 * sys_execve() executes a new program.
599 */
600SYSCALL_DEFINE4(execve, const char __user *, path,
601 const char __user *const __user *, argv,
602 const char __user *const __user *, envp,
603 struct pt_regs *, regs)
604{
605 long error;
606 struct filename *filename;
607
608 filename = getname(path);
609 error = PTR_ERR(filename);
610 if (IS_ERR(filename))
611 goto out;
612 error = do_execve(filename->name, argv, envp, regs);
613 putname(filename);
614 if (error == 0)
615 single_step_execve();
616out:
617 return error;
618}
619
620#ifdef CONFIG_COMPAT
621long compat_sys_execve(const char __user *path,
622 compat_uptr_t __user *argv,
623 compat_uptr_t __user *envp)
624{
625 long error;
626 struct filename *filename;
627
628 filename = getname(path);
629 error = PTR_ERR(filename);
630 if (IS_ERR(filename))
631 goto out;
632 error = compat_do_execve(filename->name, argv, envp,
633 current_pt_regs());
634 putname(filename);
635 if (error == 0)
636 single_step_execve();
637out:
638 return error;
639}
640#endif
641
642unsigned long get_wchan(struct task_struct *p) 597unsigned long get_wchan(struct task_struct *p)
643{ 598{
644 struct KBacktraceIterator kbt; 599 struct KBacktraceIterator kbt;