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
4e5ed85a
Commit
4e5ed85a
authored
Oct 03, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: switch to generic kernel_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a44e060f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
32 deletions
+7
-32
arch/parisc/include/asm/unistd.h
arch/parisc/include/asm/unistd.h
+1
-0
arch/parisc/kernel/entry.S
arch/parisc/kernel/entry.S
+6
-22
arch/parisc/kernel/process.c
arch/parisc/kernel/process.c
+0
-10
No files found.
arch/parisc/include/asm/unistd.h
View file @
4e5ed85a
...
...
@@ -995,6 +995,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \
#define __ARCH_WANT_SYS_RT_SIGACTION
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
#define __ARCH_WANT_KERNEL_EXECVE
#endif
/* __ASSEMBLY__ */
...
...
arch/parisc/kernel/entry.S
View file @
4e5ed85a
...
...
@@ -741,28 +741,12 @@ ENTRY(ret_from_kernel_thread)
ldi
0
,
%
r26
ENDPROC
(
ret_from_kernel_thread
)
.
import
sys_execve
,
code
ENTRY
(
__execve
)
copy
%
r2
,
%
r15
copy
%
r30
,
%
r16
ldo
PT_SZ_ALGN
(%
r30
),
%
r30
STREG
%
r26
,
PT_GR26
(%
r16
)
STREG
%
r25
,
PT_GR25
(%
r16
)
STREG
%
r24
,
PT_GR24
(%
r16
)
#ifdef CONFIG_64BIT
ldo
-
16
(%
r30
),%
r29
/*
Reference
param
save
area
*/
#endif
BL
sys_execve
,
%
r2
copy
%
r16
,
%
r26
cmpib
,=,
n
0
,%
r28
,
intr_return
/*
forward
*/
/
*
yes
,
this
will
trap
and
die
.
*/
copy
%
r15
,
%
r2
copy
%
r16
,
%
r30
bv
%
r0
(%
r2
)
nop
ENDPROC
(
__execve
)
ENTRY
(
ret_from_kernel_execve
)
mfctl
%
cr30
,
%
r1
ldo
THREAD_SZ_ALGN
(%
r1
),
%
r30
b
intr_return
/*
forward
*/
copy
%
r26
,%
r16
/*
pt_regs
into
r16
*/
ENDPROC
(
ret_from_kernel_execve
)
/
*
...
...
arch/parisc/kernel/process.c
View file @
4e5ed85a
...
...
@@ -337,16 +337,6 @@ asmlinkage int sys_execve(struct pt_regs *regs)
return
error
;
}
extern
int
__execve
(
const
char
*
filename
,
const
char
*
const
argv
[],
const
char
*
const
envp
[],
struct
task_struct
*
task
);
int
kernel_execve
(
const
char
*
filename
,
const
char
*
const
argv
[],
const
char
*
const
envp
[])
{
return
__execve
(
filename
,
argv
,
envp
,
current
);
}
unsigned
long
get_wchan
(
struct
task_struct
*
p
)
{
...
...
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