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
0bcfe540
Commit
0bcfe540
authored
Oct 26, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: switch to generic fork/clone/vfork
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
38a61b6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
32 deletions
+4
-32
arch/powerpc/Kconfig
arch/powerpc/Kconfig
+1
-0
arch/powerpc/include/asm/syscalls.h
arch/powerpc/include/asm/syscalls.h
+0
-9
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/asm/unistd.h
+3
-0
arch/powerpc/kernel/process.c
arch/powerpc/kernel/process.c
+0
-23
No files found.
arch/powerpc/Kconfig
View file @
0bcfe540
...
@@ -145,6 +145,7 @@ config PPC
...
@@ -145,6 +145,7 @@ config PPC
select HAVE_MOD_ARCH_SPECIFIC
select HAVE_MOD_ARCH_SPECIFIC
select MODULES_USE_ELF_RELA
select MODULES_USE_ELF_RELA
select GENERIC_KERNEL_EXECVE
select GENERIC_KERNEL_EXECVE
select CLONE_BACKWARDS
config EARLY_PRINTK
config EARLY_PRINTK
bool
bool
...
...
arch/powerpc/include/asm/syscalls.h
View file @
0bcfe540
...
@@ -17,15 +17,6 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
...
@@ -17,15 +17,6 @@ asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
asmlinkage
unsigned
long
sys_mmap2
(
unsigned
long
addr
,
size_t
len
,
asmlinkage
unsigned
long
sys_mmap2
(
unsigned
long
addr
,
size_t
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
unsigned
long
pgoff
);
unsigned
long
fd
,
unsigned
long
pgoff
);
asmlinkage
int
sys_clone
(
unsigned
long
clone_flags
,
unsigned
long
usp
,
int
__user
*
parent_tidp
,
void
__user
*
child_threadptr
,
int
__user
*
child_tidp
,
int
p6
,
struct
pt_regs
*
regs
);
asmlinkage
int
sys_fork
(
unsigned
long
p1
,
unsigned
long
p2
,
unsigned
long
p3
,
unsigned
long
p4
,
unsigned
long
p5
,
unsigned
long
p6
,
struct
pt_regs
*
regs
);
asmlinkage
int
sys_vfork
(
unsigned
long
p1
,
unsigned
long
p2
,
unsigned
long
p3
,
unsigned
long
p4
,
unsigned
long
p5
,
unsigned
long
p6
,
struct
pt_regs
*
regs
);
asmlinkage
long
sys_pipe
(
int
__user
*
fildes
);
asmlinkage
long
sys_pipe
(
int
__user
*
fildes
);
asmlinkage
long
sys_pipe2
(
int
__user
*
fildes
,
int
flags
);
asmlinkage
long
sys_pipe2
(
int
__user
*
fildes
,
int
flags
);
asmlinkage
long
sys_rt_sigaction
(
int
sig
,
asmlinkage
long
sys_rt_sigaction
(
int
sig
,
...
...
arch/powerpc/include/asm/unistd.h
View file @
0bcfe540
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
#endif
#endif
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE
/*
/*
* "Conditional" syscalls
* "Conditional" syscalls
...
...
arch/powerpc/kernel/process.c
View file @
0bcfe540
...
@@ -1026,29 +1026,6 @@ int get_unalign_ctl(struct task_struct *tsk, unsigned long adr)
...
@@ -1026,29 +1026,6 @@ int get_unalign_ctl(struct task_struct *tsk, unsigned long adr)
return
put_user
(
tsk
->
thread
.
align_ctl
,
(
unsigned
int
__user
*
)
adr
);
return
put_user
(
tsk
->
thread
.
align_ctl
,
(
unsigned
int
__user
*
)
adr
);
}
}
int
sys_clone
(
unsigned
long
clone_flags
,
unsigned
long
usp
,
int
__user
*
parent_tidp
,
void
__user
*
child_threadptr
,
int
__user
*
child_tidp
,
int
p6
,
struct
pt_regs
*
regs
)
{
return
do_fork
(
clone_flags
,
usp
,
regs
,
0
,
parent_tidp
,
child_tidp
);
}
int
sys_fork
(
unsigned
long
p1
,
unsigned
long
p2
,
unsigned
long
p3
,
unsigned
long
p4
,
unsigned
long
p5
,
unsigned
long
p6
,
struct
pt_regs
*
regs
)
{
return
do_fork
(
SIGCHLD
,
0
,
regs
,
0
,
NULL
,
NULL
);
}
int
sys_vfork
(
unsigned
long
p1
,
unsigned
long
p2
,
unsigned
long
p3
,
unsigned
long
p4
,
unsigned
long
p5
,
unsigned
long
p6
,
struct
pt_regs
*
regs
)
{
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
0
,
regs
,
0
,
NULL
,
NULL
);
}
static
inline
int
valid_irq_stack
(
unsigned
long
sp
,
struct
task_struct
*
p
,
static
inline
int
valid_irq_stack
(
unsigned
long
sp
,
struct
task_struct
*
p
,
unsigned
long
nbytes
)
unsigned
long
nbytes
)
{
{
...
...
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