Skip to content

Commit

Permalink
mips: switch to saner kernel_execve() semantics
Browse files Browse the repository at this point in the history
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 15, 2012
1 parent baf9ff7 commit 9b0e5d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ config MIPS
select MODULES_USE_ELF_REL
select MODULES_USE_ELF_RELA if 64BIT
select GENERIC_KERNEL_THREAD
select GENERIC_KERNEL_EXECVE

menu "Machine selection"

Expand Down
1 change: 0 additions & 1 deletion arch/mips/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __ASSEMBLY__

#define __ARCH_OMIT_COMPAT_SYS_GETDENTS64
#define __ARCH_WANT_KERNEL_EXECVE
#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_SYS_ALARM
#define __ARCH_WANT_SYS_EXECVE
Expand Down
12 changes: 1 addition & 11 deletions arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ FEXPORT(ret_from_kernel_thread)
jal schedule_tail # a0 = struct task_struct *prev
move a0, s1
jal s0
li a0, 0
j sys_exit
j syscall_exit

FEXPORT(ret_from_fork)
jal schedule_tail # a0 = struct task_struct *prev
Expand Down Expand Up @@ -192,15 +191,6 @@ syscall_exit_work:
jal syscall_trace_leave
b resume_userspace

LEAF(ret_from_kernel_execve)
move sp, a0
ori $28, sp, _THREAD_SIZE - 1
xori $28, $28, _THREAD_SIZE - 1
li v0, 0
li a3, 0
j syscall_exit_partial
END(ret_from_kernel_execve)

#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT)

/*
Expand Down

0 comments on commit 9b0e5d4

Please sign in to comment.