Skip to content

Commit

Permalink
avr32: switch to generic sys_execve()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 15, 2012
1 parent 5adc807 commit 5fd0b58
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 deletions.
1 change: 1 addition & 0 deletions arch/avr32/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define __ARCH_WANT_SYS_GETPGRP
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_SYS_EXECVE

/*
* "Conditional" syscalls
Expand Down
21 changes: 0 additions & 21 deletions arch/avr32/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,27 +349,6 @@ asmlinkage int sys_vfork(struct pt_regs *regs)
0, NULL, NULL);
}

asmlinkage int sys_execve(const char __user *ufilename,
const char __user *const __user *uargv,
const char __user *const __user *uenvp,
struct pt_regs *regs)
{
int error;
struct filename *filename;

filename = getname(ufilename);
error = PTR_ERR(filename);
if (IS_ERR(filename))
goto out;

error = do_execve(filename->name, uargv, uenvp, regs);
putname(filename);

out:
return error;
}


/*
* This function is supposed to answer the question "who called
* schedule()?"
Expand Down
6 changes: 0 additions & 6 deletions arch/avr32/kernel/syscall-stubs.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ __sys_vfork:
mov r12, sp
rjmp sys_vfork

.global __sys_execve
.type __sys_execve,@function
__sys_execve:
mov r9, sp
rjmp sys_execve

.global __sys_mmap2
.type __sys_mmap2,@function
__sys_mmap2:
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/kernel/syscall_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sys_call_table:
.long sys_creat
.long sys_link
.long sys_unlink /* 10 */
.long __sys_execve
.long sys_execve
.long sys_chdir
.long sys_time
.long sys_mknod
Expand Down

0 comments on commit 5fd0b58

Please sign in to comment.