Skip to content

Commit ddf23e8

Browse files
author
Al Viro
committed
mn10300: switch to saner kernel_execve() semantics
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ddffeb8 commit ddf23e8

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎arch/mn10300/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ config MN10300
99
select HAVE_NMI_WATCHDOG if MN10300_WD_TIMER
1010
select GENERIC_CLOCKEVENTS
1111
select GENERIC_KERNEL_THREAD
12+
select GENERIC_KERNEL_EXECVE
1213
select MODULES_USE_ELF_RELA
1314

1415
config AM33_2

‎arch/mn10300/include/asm/unistd.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#define __ARCH_WANT_SYS_RT_SIGACTION
4545
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
4646
#define __ARCH_WANT_SYS_EXECVE
47-
#define __ARCH_WANT_KERNEL_EXECVE
4847

4948
/*
5049
* "Conditional" syscalls

‎arch/mn10300/kernel/entry.S‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,8 @@ ENTRY(ret_from_kernel_thread)
6060
mov (REG_D0,fp),d0
6161
mov (REG_A0,fp),a0
6262
calls (a0)
63-
jmp sys_exit
64-
65-
ENTRY(ret_from_kernel_execve)
66-
add -12,d0 /* pt_regs -> frame */
67-
mov d0,sp
68-
GET_THREAD_INFO a2
6963
clr d0
64+
mov d0,(REG_D0,fp)
7065
jmp syscall_exit
7166

7267
###############################################################################

0 commit comments

Comments
 (0)