Skip to content

Commit

Permalink
hexagon: switch to generic sys_execve()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Oct 24, 2012
1 parent 9952185 commit 27aedbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
1 change: 1 addition & 0 deletions arch/hexagon/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
*/

#define sys_mmap2 sys_mmap_pgoff
#define __ARCH_WANT_SYS_EXECVE

#include <asm-generic/unistd.h>
19 changes: 0 additions & 19 deletions arch/hexagon/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,6 @@
* See signal.c for signal-related system call wrappers.
*/

asmlinkage int sys_execve(char __user *ufilename,
const char __user *const __user *argv,
const char __user *const __user *envp)
{
struct pt_regs *pregs = current_pt_regs();
struct filename *filename;
int retval;

filename = getname(ufilename);
retval = PTR_ERR(filename);
if (IS_ERR(filename))
return retval;

retval = do_execve(filename->name, argv, envp, pregs);
putname(filename);

return retval;
}

asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
unsigned long parent_tidp, unsigned long child_tidp)
{
Expand Down

0 comments on commit 27aedbd

Please sign in to comment.