Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
64b3122d
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
14
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看板
提交
64b3122d
编写于
12月 27, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mips: take the "zero newsp means inherit the parent's one" to copy_thread()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
974fdb3c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
6 deletion
+3
-6
arch/mips/kernel/linux32.c
arch/mips/kernel/linux32.c
+0
-2
arch/mips/kernel/process.c
arch/mips/kernel/process.c
+2
-1
arch/mips/kernel/syscall.c
arch/mips/kernel/syscall.c
+1
-3
未找到文件。
arch/mips/kernel/linux32.c
浏览文件 @
64b3122d
...
@@ -289,8 +289,6 @@ _sys32_clone(nabi_no_regargs struct pt_regs regs)
...
@@ -289,8 +289,6 @@ _sys32_clone(nabi_no_regargs struct pt_regs regs)
clone_flags
=
regs
.
regs
[
4
];
clone_flags
=
regs
.
regs
[
4
];
newsp
=
regs
.
regs
[
5
];
newsp
=
regs
.
regs
[
5
];
if
(
!
newsp
)
newsp
=
regs
.
regs
[
29
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
/* Use __dummy4 instead of getting it off the stack, so that
/* Use __dummy4 instead of getting it off the stack, so that
...
...
arch/mips/kernel/process.c
浏览文件 @
64b3122d
...
@@ -156,7 +156,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
...
@@ -156,7 +156,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
*
childregs
=
*
regs
;
*
childregs
=
*
regs
;
childregs
->
regs
[
7
]
=
0
;
/* Clear error flag */
childregs
->
regs
[
7
]
=
0
;
/* Clear error flag */
childregs
->
regs
[
2
]
=
0
;
/* Child gets zero as return value */
childregs
->
regs
[
2
]
=
0
;
/* Child gets zero as return value */
childregs
->
regs
[
29
]
=
usp
;
if
(
usp
)
childregs
->
regs
[
29
]
=
usp
;
ti
->
addr_limit
=
USER_DS
;
ti
->
addr_limit
=
USER_DS
;
p
->
thread
.
reg29
=
(
unsigned
long
)
childregs
;
p
->
thread
.
reg29
=
(
unsigned
long
)
childregs
;
...
...
arch/mips/kernel/syscall.c
浏览文件 @
64b3122d
...
@@ -86,7 +86,7 @@ save_static_function(sys_fork);
...
@@ -86,7 +86,7 @@ save_static_function(sys_fork);
static
int
__used
noinline
static
int
__used
noinline
_sys_fork
(
nabi_no_regargs
struct
pt_regs
regs
)
_sys_fork
(
nabi_no_regargs
struct
pt_regs
regs
)
{
{
return
do_fork
(
SIGCHLD
,
regs
.
regs
[
29
]
,
0
,
NULL
,
NULL
);
return
do_fork
(
SIGCHLD
,
0
,
0
,
NULL
,
NULL
);
}
}
save_static_function
(
sys_clone
);
save_static_function
(
sys_clone
);
...
@@ -99,8 +99,6 @@ _sys_clone(nabi_no_regargs struct pt_regs regs)
...
@@ -99,8 +99,6 @@ _sys_clone(nabi_no_regargs struct pt_regs regs)
clone_flags
=
regs
.
regs
[
4
];
clone_flags
=
regs
.
regs
[
4
];
newsp
=
regs
.
regs
[
5
];
newsp
=
regs
.
regs
[
5
];
if
(
!
newsp
)
newsp
=
regs
.
regs
[
29
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
#ifdef CONFIG_32BIT
#ifdef CONFIG_32BIT
/* We need to fetch the fifth argument off the stack. */
/* We need to fetch the fifth argument off the stack. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录