Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8f1597e9
Commit
8f1597e9
authored
Sep 19, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mn10300: switch to generic sys_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
255461c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
arch/mn10300/include/asm/ptrace.h
arch/mn10300/include/asm/ptrace.h
+1
-0
arch/mn10300/include/asm/unistd.h
arch/mn10300/include/asm/unistd.h
+1
-0
arch/mn10300/kernel/process.c
arch/mn10300/kernel/process.c
+0
-16
No files found.
arch/mn10300/include/asm/ptrace.h
View file @
8f1597e9
...
...
@@ -86,6 +86,7 @@ struct pt_regs {
#define user_mode(regs) (((regs)->epsw & EPSW_nSL) == EPSW_nSL)
#define instruction_pointer(regs) ((regs)->pc)
#define user_stack_pointer(regs) ((regs)->sp)
#define current_pt_regs() current_frame()
#define arch_has_single_step() (1)
...
...
arch/mn10300/include/asm/unistd.h
View file @
8f1597e9
...
...
@@ -382,6 +382,7 @@
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_SYS_EXECVE
/*
* "Conditional" syscalls
...
...
arch/mn10300/kernel/process.c
View file @
8f1597e9
...
...
@@ -283,22 +283,6 @@ asmlinkage long sys_vfork(void)
current_frame
(),
0
,
NULL
,
NULL
);
}
asmlinkage
long
sys_execve
(
const
char
__user
*
name
,
const
char
__user
*
const
__user
*
argv
,
const
char
__user
*
const
__user
*
envp
)
{
char
*
filename
;
int
error
;
filename
=
getname
(
name
);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
return
error
;
error
=
do_execve
(
filename
,
argv
,
envp
,
current_frame
());
putname
(
filename
);
return
error
;
}
unsigned
long
get_wchan
(
struct
task_struct
*
p
)
{
return
p
->
thread
.
wchan
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment