Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
cb562173
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cb562173
编写于
10月 22, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
unicore32: switch to generic clone(2)
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
eda96977
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
25 deletion
+7
-25
arch/unicore32/include/uapi/asm/unistd.h
arch/unicore32/include/uapi/asm/unistd.h
+1
-0
arch/unicore32/kernel/entry.S
arch/unicore32/kernel/entry.S
+0
-6
arch/unicore32/kernel/process.c
arch/unicore32/kernel/process.c
+6
-5
arch/unicore32/kernel/sys.c
arch/unicore32/kernel/sys.c
+0
-14
未找到文件。
arch/unicore32/include/uapi/asm/unistd.h
浏览文件 @
cb562173
...
...
@@ -13,3 +13,4 @@
/* Use the standard ABI for syscalls. */
#include <asm-generic/unistd.h>
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_CLONE
arch/unicore32/kernel/entry.S
浏览文件 @
cb562173
...
...
@@ -668,12 +668,6 @@ __cr_alignment:
#endif
.
ltorg
ENTRY
(
sys_clone
)
add
ip
,
sp
,
#
S_OFF
stw
ip
,
[
sp
+],
#
4
b
__sys_clone
ENDPROC
(
sys_clone
)
ENTRY
(
sys_rt_sigreturn
)
add
r0
,
sp
,
#
S_OFF
mov
why
,
#
0
@
prevent
syscall
restart
handling
...
...
arch/unicore32/kernel/process.c
浏览文件 @
cb562173
...
...
@@ -262,26 +262,27 @@ asmlinkage void ret_from_kernel_thread(void) __asm__("ret_from_kernel_thread");
int
copy_thread
(
unsigned
long
clone_flags
,
unsigned
long
stack_start
,
unsigned
long
stk_sz
,
struct
task_struct
*
p
,
struct
pt_regs
*
regs
)
unsigned
long
stk_sz
,
struct
task_struct
*
p
,
struct
pt_regs
*
unused
)
{
struct
thread_info
*
thread
=
task_thread_info
(
p
);
struct
pt_regs
*
childregs
=
task_pt_regs
(
p
);
memset
(
&
thread
->
cpu_context
,
0
,
sizeof
(
struct
cpu_context_save
));
thread
->
cpu_context
.
sp
=
(
unsigned
long
)
childregs
;
if
(
unlikely
(
!
regs
))
{
if
(
unlikely
(
p
->
flags
&
PF_KTHREAD
))
{
thread
->
cpu_context
.
pc
=
(
unsigned
long
)
ret_from_kernel_thread
;
thread
->
cpu_context
.
r4
=
stack_start
;
thread
->
cpu_context
.
r5
=
stk_sz
;
memset
(
childregs
,
0
,
sizeof
(
struct
pt_regs
));
}
else
{
thread
->
cpu_context
.
pc
=
(
unsigned
long
)
ret_from_fork
;
*
childregs
=
*
regs
;
*
childregs
=
*
current_pt_regs
()
;
childregs
->
UCreg_00
=
0
;
childregs
->
UCreg_sp
=
stack_start
;
if
(
stack_start
)
childregs
->
UCreg_sp
=
stack_start
;
if
(
clone_flags
&
CLONE_SETTLS
)
childregs
->
UCreg_16
=
regs
->
UCreg_03
;
childregs
->
UCreg_16
=
child
regs
->
UCreg_03
;
}
return
0
;
}
...
...
arch/unicore32/kernel/sys.c
浏览文件 @
cb562173
...
...
@@ -28,20 +28,6 @@
#include <asm/syscalls.h>
#include <asm/cacheflush.h>
/* Clone a task - this clones the calling program thread.
* This is called indirectly via a small wrapper
*/
asmlinkage
long
__sys_clone
(
unsigned
long
clone_flags
,
unsigned
long
newsp
,
void
__user
*
parent_tid
,
void
__user
*
child_tid
,
struct
pt_regs
*
regs
)
{
if
(
!
newsp
)
newsp
=
regs
->
UCreg_sp
;
return
do_fork
(
clone_flags
,
newsp
,
regs
,
0
,
parent_tid
,
child_tid
);
}
/* Note: used by the compat code even in 64-bit Linux. */
SYSCALL_DEFINE6
(
mmap2
,
unsigned
long
,
addr
,
unsigned
long
,
len
,
unsigned
long
,
prot
,
unsigned
long
,
flags
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录