Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

alpha: switch to generic sys_execve()

get rid of sys_execve() wrapper, while we are at it

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 756144f8 a63c97a0

+1 -30
+1
arch/alpha/include/asm/unistd.h
··· 481 481 #define __ARCH_WANT_SYS_OLDUMOUNT 482 482 #define __ARCH_WANT_SYS_SIGPENDING 483 483 #define __ARCH_WANT_SYS_RT_SIGSUSPEND 484 + #define __ARCH_WANT_SYS_EXECVE 484 485 485 486 /* "Conditional" syscalls. What we want is 486 487
-9
arch/alpha/kernel/entry.S
··· 745 745 .end sys_rt_sigreturn 746 746 747 747 .align 4 748 - .globl sys_execve 749 - .ent sys_execve 750 - sys_execve: 751 - .prologue 0 752 - mov $sp, $19 753 - jmp $31, do_sys_execve 754 - .end sys_execve 755 - 756 - .align 4 757 748 .globl alpha_ni_syscall 758 749 .ent alpha_ni_syscall 759 750 alpha_ni_syscall:
-21
arch/alpha/kernel/process.c
··· 382 382 EXPORT_SYMBOL(dump_elf_task_fp); 383 383 384 384 /* 385 - * sys_execve() executes a new program. 386 - */ 387 - asmlinkage int 388 - do_sys_execve(const char __user *ufilename, 389 - const char __user *const __user *argv, 390 - const char __user *const __user *envp, struct pt_regs *regs) 391 - { 392 - int error; 393 - char *filename; 394 - 395 - filename = getname(ufilename); 396 - error = PTR_ERR(filename); 397 - if (IS_ERR(filename)) 398 - goto out; 399 - error = do_execve(filename, argv, envp, regs); 400 - putname(filename); 401 - out: 402 - return error; 403 - } 404 - 405 - /* 406 385 * Return saved PC of a blocked thread. This assumes the frame 407 386 * pointer is the 6th saved long on the kernel stack and that the 408 387 * saved return address is the first long in the frame. This all