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
f7200d4c
Commit
f7200d4c
authored
Sep 29, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc32: switch to generic sys_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ab348681
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
49 deletions
+4
-49
arch/sparc/include/asm/syscalls.h
arch/sparc/include/asm/syscalls.h
+0
-4
arch/sparc/include/asm/unistd.h
arch/sparc/include/asm/unistd.h
+1
-1
arch/sparc/kernel/entry.S
arch/sparc/kernel/entry.S
+3
-16
arch/sparc/kernel/process_32.c
arch/sparc/kernel/process_32.c
+0
-28
No files found.
arch/sparc/include/asm/syscalls.h
View file @
f7200d4c
...
@@ -8,8 +8,4 @@ extern asmlinkage long sparc_do_fork(unsigned long clone_flags,
...
@@ -8,8 +8,4 @@ extern asmlinkage long sparc_do_fork(unsigned long clone_flags,
struct
pt_regs
*
regs
,
struct
pt_regs
*
regs
,
unsigned
long
stack_size
);
unsigned
long
stack_size
);
#ifndef __arch64__
extern
asmlinkage
int
sparc_execve
(
struct
pt_regs
*
regs
);
#endif
#endif
/* _SPARC64_SYSCALLS_H */
#endif
/* _SPARC64_SYSCALLS_H */
arch/sparc/include/asm/unistd.h
View file @
f7200d4c
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
#define __ARCH_WANT_COMPAT_SYS_TIME
#define __ARCH_WANT_COMPAT_SYS_TIME
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#define __ARCH_WANT_SYS_EXECVE
#endif
#endif
#define __ARCH_WANT_SYS_EXECVE
/*
/*
* "Conditional" syscalls
* "Conditional" syscalls
...
...
arch/sparc/kernel/entry.S
View file @
f7200d4c
...
@@ -806,23 +806,10 @@ sys_nis_syscall:
...
@@ -806,23 +806,10 @@ sys_nis_syscall:
call
c_sys_nis_syscall
call
c_sys_nis_syscall
mov
%
l5
,
%
o7
mov
%
l5
,
%
o7
.
align
4
.
globl
sys_execve
sys_execve
:
mov
%
o7
,
%
l5
add
%
sp
,
STACKFRAME_SZ
,
%
o0
!
pt_regs
*
regs
arg
call
sparc_execve
mov
%
l5
,
%
o7
.
globl
sunos_execv
sunos_execv
:
sunos_execv
:
st
%
g0
,
[%
sp
+
STACKFRAME_SZ
+
PT_I2
]
.
globl
sunos_execv
b
sys_execve
call
sparc_execve
clr
%
i2
add
%
sp
,
STACKFRAME_SZ
,
%
o0
b
ret_sys_call
ld
[%
sp
+
STACKFRAME_SZ
+
PT_I0
],
%
o0
.
align
4
.
align
4
.
globl
sys_sparc_pipe
.
globl
sys_sparc_pipe
...
...
arch/sparc/kernel/process_32.c
View file @
f7200d4c
...
@@ -476,34 +476,6 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs)
...
@@ -476,34 +476,6 @@ int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs)
return
1
;
return
1
;
}
}
/*
* sparc_execve() executes a new program after the asm stub has set
* things up for us. This should basically do what I want it to.
*/
asmlinkage
int
sparc_execve
(
struct
pt_regs
*
regs
)
{
int
error
,
base
=
0
;
struct
filename
*
filename
;
/* Check for indirect call. */
if
(
regs
->
u_regs
[
UREG_G1
]
==
0
)
base
=
1
;
filename
=
getname
((
char
__user
*
)
regs
->
u_regs
[
base
+
UREG_I0
]);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
goto
out
;
error
=
do_execve
(
filename
->
name
,
(
const
char
__user
*
const
__user
*
)
regs
->
u_regs
[
base
+
UREG_I1
],
(
const
char
__user
*
const
__user
*
)
regs
->
u_regs
[
base
+
UREG_I2
],
regs
);
putname
(
filename
);
out:
return
error
;
}
unsigned
long
get_wchan
(
struct
task_struct
*
task
)
unsigned
long
get_wchan
(
struct
task_struct
*
task
)
{
{
unsigned
long
pc
,
fp
,
bias
=
0
;
unsigned
long
pc
,
fp
,
bias
=
0
;
...
...
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