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
nexedi
linux
Commits
71915d21
Commit
71915d21
authored
Oct 10, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: generic sys_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5fae1b66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
arch/h8300/include/asm/unistd.h
arch/h8300/include/asm/unistd.h
+1
-0
arch/h8300/kernel/process.c
arch/h8300/kernel/process.c
+0
-21
No files found.
arch/h8300/include/asm/unistd.h
View file @
71915d21
...
@@ -356,6 +356,7 @@
...
@@ -356,6 +356,7 @@
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_SYS_EXECVE
/*
/*
* "Conditional" syscalls
* "Conditional" syscalls
...
...
arch/h8300/kernel/process.c
View file @
71915d21
...
@@ -183,27 +183,6 @@ int copy_thread(unsigned long clone_flags,
...
@@ -183,27 +183,6 @@ int copy_thread(unsigned long clone_flags,
return
0
;
return
0
;
}
}
/*
* sys_execve() executes a new program.
*/
asmlinkage
int
sys_execve
(
const
char
*
name
,
const
char
*
const
*
argv
,
const
char
*
const
*
envp
,
int
dummy
,
...)
{
int
error
;
struct
filename
*
filename
;
struct
pt_regs
*
regs
=
(
struct
pt_regs
*
)
((
unsigned
char
*
)
&
dummy
-
4
);
filename
=
getname
(
name
);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
return
error
;
error
=
do_execve
(
filename
->
name
,
argv
,
envp
,
regs
);
putname
(
filename
);
return
error
;
}
unsigned
long
thread_saved_pc
(
struct
task_struct
*
tsk
)
unsigned
long
thread_saved_pc
(
struct
task_struct
*
tsk
)
{
{
return
((
struct
pt_regs
*
)
tsk
->
thread
.
esp0
)
->
pc
;
return
((
struct
pt_regs
*
)
tsk
->
thread
.
esp0
)
->
pc
;
...
...
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