Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
1bec157a
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1bec157a
编写于
9月 24, 2008
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Force pending restarted system calls to return -EINTR.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
aa88f169
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
6 deletion
+18
-6
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_32.c
+6
-0
arch/sh/kernel/signal_64.c
arch/sh/kernel/signal_64.c
+12
-6
未找到文件。
arch/sh/kernel/signal_32.c
浏览文件 @
1bec157a
...
...
@@ -216,6 +216,9 @@ asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
sigset_t
set
;
int
r0
;
/* Always make any pending restarted system calls return -EINTR */
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
if
(
!
access_ok
(
VERIFY_READ
,
frame
,
sizeof
(
*
frame
)))
goto
badframe
;
...
...
@@ -250,6 +253,9 @@ asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
sigset_t
set
;
int
r0
;
/* Always make any pending restarted system calls return -EINTR */
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
if
(
!
access_ok
(
VERIFY_READ
,
frame
,
sizeof
(
*
frame
)))
goto
badframe
;
...
...
arch/sh/kernel/signal_64.c
浏览文件 @
1bec157a
...
...
@@ -375,6 +375,9 @@ asmlinkage int sys_sigreturn(unsigned long r2, unsigned long r3,
sigset_t
set
;
long
long
ret
;
/* Always make any pending restarted system calls return -EINTR */
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
if
(
!
access_ok
(
VERIFY_READ
,
frame
,
sizeof
(
*
frame
)))
goto
badframe
;
...
...
@@ -412,6 +415,9 @@ asmlinkage int sys_rt_sigreturn(unsigned long r2, unsigned long r3,
stack_t
__user
st
;
long
long
ret
;
/* Always make any pending restarted system calls return -EINTR */
current_thread_info
()
->
restart_block
.
fn
=
do_no_restart_syscall
;
if
(
!
access_ok
(
VERIFY_READ
,
frame
,
sizeof
(
*
frame
)))
goto
badframe
;
...
...
@@ -539,7 +545,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
* On SH5 all edited pointers are subject to NEFF
*/
DEREF_REG_PR
=
(
DEREF_REG_PR
&
NEFF_SIGN
)
?
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
}
else
{
/*
* Different approach on SH5.
...
...
@@ -554,7 +560,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
*/
DEREF_REG_PR
=
(
unsigned
long
)
frame
->
retcode
|
0x01
;
DEREF_REG_PR
=
(
DEREF_REG_PR
&
NEFF_SIGN
)
?
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
if
(
__copy_to_user
(
frame
->
retcode
,
(
unsigned
long
long
)
sa_default_restorer
&
(
~
1
),
16
)
!=
0
)
...
...
@@ -570,7 +576,7 @@ static void setup_frame(int sig, struct k_sigaction *ka,
*/
regs
->
regs
[
REG_SP
]
=
(
unsigned
long
)
frame
;
regs
->
regs
[
REG_SP
]
=
(
regs
->
regs
[
REG_SP
]
&
NEFF_SIGN
)
?
(
regs
->
regs
[
REG_SP
]
|
NEFF_MASK
)
:
regs
->
regs
[
REG_SP
];
(
regs
->
regs
[
REG_SP
]
|
NEFF_MASK
)
:
regs
->
regs
[
REG_SP
];
regs
->
regs
[
REG_ARG1
]
=
signal
;
/* Arg for signal handler */
/* FIXME:
...
...
@@ -656,7 +662,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
* On SH5 all edited pointers are subject to NEFF
*/
DEREF_REG_PR
=
(
DEREF_REG_PR
&
NEFF_SIGN
)
?
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
}
else
{
/*
* Different approach on SH5.
...
...
@@ -672,7 +678,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
DEREF_REG_PR
=
(
unsigned
long
)
frame
->
retcode
|
0x01
;
DEREF_REG_PR
=
(
DEREF_REG_PR
&
NEFF_SIGN
)
?
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
(
DEREF_REG_PR
|
NEFF_MASK
)
:
DEREF_REG_PR
;
if
(
__copy_to_user
(
frame
->
retcode
,
(
unsigned
long
long
)
sa_default_rt_restorer
&
(
~
1
),
16
)
!=
0
)
...
...
@@ -687,7 +693,7 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
*/
regs
->
regs
[
REG_SP
]
=
(
unsigned
long
)
frame
;
regs
->
regs
[
REG_SP
]
=
(
regs
->
regs
[
REG_SP
]
&
NEFF_SIGN
)
?
(
regs
->
regs
[
REG_SP
]
|
NEFF_MASK
)
:
regs
->
regs
[
REG_SP
];
(
regs
->
regs
[
REG_SP
]
|
NEFF_MASK
)
:
regs
->
regs
[
REG_SP
];
regs
->
regs
[
REG_ARG1
]
=
signal
;
/* Arg for signal handler */
regs
->
regs
[
REG_ARG2
]
=
(
unsigned
long
long
)(
unsigned
long
)(
signed
long
)
&
frame
->
info
;
regs
->
regs
[
REG_ARG3
]
=
(
unsigned
long
long
)(
unsigned
long
)(
signed
long
)
&
frame
->
uc
.
uc_mcontext
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录