Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3416e809
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3416e809
编写于
10月 27, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
h8300: switch to generic fork/vfork/clone
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
e9eac304
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
44 deletion
+6
-44
arch/h8300/include/asm/unistd.h
arch/h8300/include/asm/unistd.h
+3
-0
arch/h8300/kernel/process.c
arch/h8300/kernel/process.c
+3
-35
arch/h8300/kernel/syscalls.S
arch/h8300/kernel/syscalls.S
+0
-9
未找到文件。
arch/h8300/include/asm/unistd.h
浏览文件 @
3416e809
...
@@ -357,6 +357,9 @@
...
@@ -357,6 +357,9 @@
#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
#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/h8300/kernel/process.c
浏览文件 @
3416e809
...
@@ -127,40 +127,9 @@ void flush_thread(void)
...
@@ -127,40 +127,9 @@ void flush_thread(void)
{
{
}
}
/*
* "h8300_fork()".. By the time we get here, the
* non-volatile registers have also been saved on the
* stack. We do some ugly pointer stuff here.. (see
* also copy_thread)
*/
asmlinkage
int
h8300_fork
(
struct
pt_regs
*
regs
)
{
return
-
EINVAL
;
}
asmlinkage
int
h8300_vfork
(
struct
pt_regs
*
regs
)
{
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
);
}
asmlinkage
int
h8300_clone
(
struct
pt_regs
*
regs
)
{
unsigned
long
clone_flags
;
unsigned
long
newsp
;
/* syscall2 puts clone_flags in er1 and usp in er2 */
clone_flags
=
regs
->
er1
;
newsp
=
regs
->
er2
;
if
(
!
newsp
)
newsp
=
rdusp
();
return
do_fork
(
clone_flags
,
newsp
,
regs
,
0
,
NULL
,
NULL
);
}
int
copy_thread
(
unsigned
long
clone_flags
,
int
copy_thread
(
unsigned
long
clone_flags
,
unsigned
long
usp
,
unsigned
long
topstk
,
unsigned
long
usp
,
unsigned
long
topstk
,
struct
task_struct
*
p
,
struct
pt_regs
*
regs
)
struct
task_struct
*
p
,
struct
pt_regs
*
unused
)
{
{
struct
pt_regs
*
childregs
;
struct
pt_regs
*
childregs
;
...
@@ -173,11 +142,10 @@ int copy_thread(unsigned long clone_flags,
...
@@ -173,11 +142,10 @@ int copy_thread(unsigned long clone_flags,
childregs
->
er5
=
usp
;
/* fn */
childregs
->
er5
=
usp
;
/* fn */
p
->
thread
.
ksp
=
(
unsigned
long
)
childregs
;
p
->
thread
.
ksp
=
(
unsigned
long
)
childregs
;
}
}
*
childregs
=
*
regs
;
*
childregs
=
*
current_pt_regs
()
;
childregs
->
retpc
=
(
unsigned
long
)
ret_from_fork
;
childregs
->
retpc
=
(
unsigned
long
)
ret_from_fork
;
childregs
->
er0
=
0
;
childregs
->
er0
=
0
;
p
->
thread
.
usp
=
usp
?:
rdusp
();
p
->
thread
.
usp
=
usp
;
p
->
thread
.
ksp
=
(
unsigned
long
)
childregs
;
p
->
thread
.
ksp
=
(
unsigned
long
)
childregs
;
return
0
;
return
0
;
...
...
arch/h8300/kernel/syscalls.S
浏览文件 @
3416e809
...
@@ -340,21 +340,12 @@ SYMBOL_NAME_LABEL(sys_call_table)
...
@@ -340,21 +340,12 @@ SYMBOL_NAME_LABEL(sys_call_table)
bra
SYMBOL_NAME
(
syscall_trampoline
):
8
bra
SYMBOL_NAME
(
syscall_trampoline
):
8
.
endm
.
endm
SYMBOL_NAME_LABEL
(
sys_clone
)
call_sp
h8300_clone
SYMBOL_NAME_LABEL
(
sys_sigreturn
)
SYMBOL_NAME_LABEL
(
sys_sigreturn
)
call_sp
do_sigreturn
call_sp
do_sigreturn
SYMBOL_NAME_LABEL
(
sys_rt_sigreturn
)
SYMBOL_NAME_LABEL
(
sys_rt_sigreturn
)
call_sp
do_rt_sigreturn
call_sp
do_rt_sigreturn
SYMBOL_NAME_LABEL
(
sys_fork
)
call_sp
h8300_fork
SYMBOL_NAME_LABEL
(
sys_vfork
)
call_sp
h8300_vfork
SYMBOL_NAME_LABEL
(
syscall_trampoline
)
SYMBOL_NAME_LABEL
(
syscall_trampoline
)
mov.l
sp
,
er0
mov.l
sp
,
er0
jmp
@
er6
jmp
@
er6
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录