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
a91a2bb1
Commit
a91a2bb1
authored
Oct 19, 2012
by
Jonas Bonn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openrisc: use generic sys_execve
Signed-off-by:
Jonas Bonn
<
jonas@southpole.se
>
parent
cbf23cf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
28 deletions
+2
-28
arch/openrisc/include/uapi/asm/unistd.h
arch/openrisc/include/uapi/asm/unistd.h
+2
-0
arch/openrisc/kernel/entry.S
arch/openrisc/kernel/entry.S
+0
-4
arch/openrisc/kernel/process.c
arch/openrisc/kernel/process.c
+0
-24
No files found.
arch/openrisc/include/uapi/asm/unistd.h
View file @
a91a2bb1
...
...
@@ -20,6 +20,8 @@
#define sys_mmap2 sys_mmap_pgoff
#define __ARCH_WANT_SYS_EXECVE
#include <asm-generic/unistd.h>
#define __NR_or1k_atomic __NR_arch_specific_syscall
...
...
arch/openrisc/kernel/entry.S
View file @
a91a2bb1
...
...
@@ -1083,10 +1083,6 @@ ENTRY(sys_fork)
l.j
_fork_save_extra_regs_and_call
l.addi
r3
,
r1
,
0
ENTRY
(
sys_execve
)
l.j
_sys_execve
l.addi
r6
,
r1
,
0
ENTRY
(
sys_sigaltstack
)
l.j
_sys_sigaltstack
l.addi
r5
,
r1
,
0
...
...
arch/openrisc/kernel/process.c
View file @
a91a2bb1
...
...
@@ -251,30 +251,6 @@ void dump_elf_thread(elf_greg_t *dest, struct pt_regs* regs)
dest
[
35
]
=
0
;
}
/*
* sys_execve() executes a new program.
*/
asmlinkage
long
_sys_execve
(
const
char
__user
*
name
,
const
char
__user
*
const
__user
*
argv
,
const
char
__user
*
const
__user
*
envp
,
struct
pt_regs
*
regs
)
{
int
error
;
struct
filename
*
filename
;
filename
=
getname
(
name
);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
goto
out
;
error
=
do_execve
(
filename
->
name
,
argv
,
envp
,
regs
);
putname
(
filename
);
out:
return
error
;
}
unsigned
long
get_wchan
(
struct
task_struct
*
p
)
{
/* TODO */
...
...
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