Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
235b8022
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看板
提交
235b8022
编写于
11月 09, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86: convert to ksignal
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
08f73957
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
74 addition
and
85 deletion
+74
-85
arch/x86/ia32/ia32_signal.c
arch/x86/ia32/ia32_signal.c
+17
-20
arch/x86/include/asm/fpu-internal.h
arch/x86/include/asm/fpu-internal.h
+3
-2
arch/x86/kernel/signal.c
arch/x86/kernel/signal.c
+54
-63
未找到文件。
arch/x86/ia32/ia32_signal.c
浏览文件 @
235b8022
...
...
@@ -309,7 +309,7 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
/*
* Determine which stack to use..
*/
static
void
__user
*
get_sigframe
(
struct
k
_sigaction
*
ka
,
struct
pt_regs
*
regs
,
static
void
__user
*
get_sigframe
(
struct
k
signal
*
ksig
,
struct
pt_regs
*
regs
,
size_t
frame_size
,
void
__user
**
fpstate
)
{
...
...
@@ -319,16 +319,13 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
sp
=
regs
->
sp
;
/* This is the X/Open sanctioned signal stack switching. */
if
(
ka
->
sa
.
sa_flags
&
SA_ONSTACK
)
{
if
(
sas_ss_flags
(
sp
)
==
0
)
sp
=
current
->
sas_ss_sp
+
current
->
sas_ss_size
;
}
if
(
ksig
->
ka
.
sa
.
sa_flags
&
SA_ONSTACK
)
sp
=
sigsp
(
sp
,
ksig
);
/* This is the legacy signal stack switching. */
else
if
((
regs
->
ss
&
0xffff
)
!=
__USER32_DS
&&
!
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
&&
k
a
->
sa
.
sa_restorer
)
sp
=
(
unsigned
long
)
k
a
->
sa
.
sa_restorer
;
!
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
&&
k
sig
->
ka
.
sa
.
sa_restorer
)
sp
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_restorer
;
if
(
used_math
())
{
unsigned
long
fx_aligned
,
math_size
;
...
...
@@ -347,7 +344,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
return
(
void
__user
*
)
sp
;
}
int
ia32_setup_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
int
ia32_setup_frame
(
int
sig
,
struct
k
signal
*
ksig
,
compat_sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
struct
sigframe_ia32
__user
*
frame
;
...
...
@@ -366,7 +363,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
0x80cd
,
/* int $0x80 */
};
frame
=
get_sigframe
(
k
a
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
frame
=
get_sigframe
(
k
sig
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
...
...
@@ -383,8 +380,8 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
return
-
EFAULT
;
}
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
{
restorer
=
k
a
->
sa
.
sa_restorer
;
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
{
restorer
=
k
sig
->
ka
.
sa
.
sa_restorer
;
}
else
{
/* Return stub is in 32bit vsyscall page */
if
(
current
->
mm
->
context
.
vdso
)
...
...
@@ -409,7 +406,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
/* Set up registers for signal handler */
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
/* Make -mregparm=3 work */
regs
->
ax
=
sig
;
...
...
@@ -425,7 +422,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
return
0
;
}
int
ia32_setup_rt_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
siginfo_t
*
info
,
int
ia32_setup_rt_frame
(
int
sig
,
struct
k
signal
*
ksig
,
compat_sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
struct
rt_sigframe_ia32
__user
*
frame
;
...
...
@@ -446,7 +443,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
0
,
};
frame
=
get_sigframe
(
k
a
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
frame
=
get_sigframe
(
k
sig
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
...
...
@@ -464,8 +461,8 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
put_user_ex
(
0
,
&
frame
->
uc
.
uc_link
);
err
|=
__compat_save_altstack
(
&
frame
->
uc
.
uc_stack
,
regs
->
sp
);
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
a
->
sa
.
sa_restorer
;
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
sig
->
ka
.
sa
.
sa_restorer
;
else
restorer
=
VDSO32_SYMBOL
(
current
->
mm
->
context
.
vdso
,
rt_sigreturn
);
...
...
@@ -478,7 +475,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
put_user_ex
(
*
((
u64
*
)
&
code
),
(
u64
__user
*
)
frame
->
retcode
);
}
put_user_catch
(
err
);
err
|=
copy_siginfo_to_user32
(
&
frame
->
info
,
info
);
err
|=
copy_siginfo_to_user32
(
&
frame
->
info
,
&
ksig
->
info
);
err
|=
ia32_setup_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
fpstate
,
regs
,
set
->
sig
[
0
]);
err
|=
__copy_to_user
(
&
frame
->
uc
.
uc_sigmask
,
set
,
sizeof
(
*
set
));
...
...
@@ -488,7 +485,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up registers for signal handler */
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
/* Make -mregparm=3 work */
regs
->
ax
=
sig
;
...
...
arch/x86/include/asm/fpu-internal.h
浏览文件 @
235b8022
...
...
@@ -26,9 +26,10 @@
#ifdef CONFIG_X86_64
# include <asm/sigcontext32.h>
# include <asm/user32.h>
int
ia32_setup_rt_frame
(
int
sig
,
struct
k_sigaction
*
ka
,
siginfo_t
*
info
,
struct
ksignal
;
int
ia32_setup_rt_frame
(
int
sig
,
struct
ksignal
*
ksig
,
compat_sigset_t
*
set
,
struct
pt_regs
*
regs
);
int
ia32_setup_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
int
ia32_setup_frame
(
int
sig
,
struct
k
signal
*
ksig
,
compat_sigset_t
*
set
,
struct
pt_regs
*
regs
);
#else
# define user_i387_ia32_struct user_i387_struct
...
...
arch/x86/kernel/signal.c
浏览文件 @
235b8022
...
...
@@ -278,7 +278,7 @@ static const struct {
};
static
int
__setup_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
sigset_t
*
set
,
__setup_frame
(
int
sig
,
struct
k
signal
*
ksig
,
sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
struct
sigframe
__user
*
frame
;
...
...
@@ -286,7 +286,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
int
err
=
0
;
void
__user
*
fpstate
=
NULL
;
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
frame
=
get_sigframe
(
&
ksig
->
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
...
...
@@ -307,8 +307,8 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
restorer
=
VDSO32_SYMBOL
(
current
->
mm
->
context
.
vdso
,
sigreturn
);
else
restorer
=
&
frame
->
retcode
;
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
a
->
sa
.
sa_restorer
;
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
sig
->
ka
.
sa
.
sa_restorer
;
/* Set up to return from userspace. */
err
|=
__put_user
(
restorer
,
&
frame
->
pretcode
);
...
...
@@ -327,7 +327,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
/* Set up registers for signal handler */
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
regs
->
ax
=
(
unsigned
long
)
sig
;
regs
->
dx
=
0
;
regs
->
cx
=
0
;
...
...
@@ -340,7 +340,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
return
0
;
}
static
int
__setup_rt_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
siginfo_t
*
info
,
static
int
__setup_rt_frame
(
int
sig
,
struct
k
signal
*
ksig
,
sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
struct
rt_sigframe
__user
*
frame
;
...
...
@@ -348,7 +348,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
int
err
=
0
;
void
__user
*
fpstate
=
NULL
;
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
frame
=
get_sigframe
(
&
ksig
->
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
...
...
@@ -368,8 +368,8 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up to return from userspace. */
restorer
=
VDSO32_SYMBOL
(
current
->
mm
->
context
.
vdso
,
rt_sigreturn
);
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
a
->
sa
.
sa_restorer
;
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
restorer
=
k
sig
->
ka
.
sa
.
sa_restorer
;
put_user_ex
(
restorer
,
&
frame
->
pretcode
);
/*
...
...
@@ -382,7 +382,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
put_user_ex
(
*
((
u64
*
)
&
rt_retcode
),
(
u64
*
)
frame
->
retcode
);
}
put_user_catch
(
err
);
err
|=
copy_siginfo_to_user
(
&
frame
->
info
,
info
);
err
|=
copy_siginfo_to_user
(
&
frame
->
info
,
&
ksig
->
info
);
err
|=
setup_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
fpstate
,
regs
,
set
->
sig
[
0
]);
err
|=
__copy_to_user
(
&
frame
->
uc
.
uc_sigmask
,
set
,
sizeof
(
*
set
));
...
...
@@ -392,7 +392,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up registers for signal handler */
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
regs
->
ax
=
(
unsigned
long
)
sig
;
regs
->
dx
=
(
unsigned
long
)
&
frame
->
info
;
regs
->
cx
=
(
unsigned
long
)
&
frame
->
uc
;
...
...
@@ -405,20 +405,20 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
return
0
;
}
#else
/* !CONFIG_X86_32 */
static
int
__setup_rt_frame
(
int
sig
,
struct
k
_sigaction
*
ka
,
siginfo_t
*
info
,
static
int
__setup_rt_frame
(
int
sig
,
struct
k
signal
*
ksig
,
sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
struct
rt_sigframe
__user
*
frame
;
void
__user
*
fp
=
NULL
;
int
err
=
0
;
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
struct
rt_sigframe
),
&
fp
);
frame
=
get_sigframe
(
&
ksig
->
ka
,
regs
,
sizeof
(
struct
rt_sigframe
),
&
fp
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
if
(
k
a
->
sa
.
sa_flags
&
SA_SIGINFO
)
{
if
(
copy_siginfo_to_user
(
&
frame
->
info
,
info
))
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_SIGINFO
)
{
if
(
copy_siginfo_to_user
(
&
frame
->
info
,
&
ksig
->
info
))
return
-
EFAULT
;
}
...
...
@@ -434,8 +434,8 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up to return from userspace. If provided, use a stub
already in userspace. */
/* x86-64 should always use SA_RESTORER. */
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
{
put_user_ex
(
k
a
->
sa
.
sa_restorer
,
&
frame
->
pretcode
);
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
{
put_user_ex
(
k
sig
->
ka
.
sa
.
sa_restorer
,
&
frame
->
pretcode
);
}
else
{
/* could use a vstub here */
err
|=
-
EFAULT
;
...
...
@@ -457,7 +457,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
next argument after the signal number on the stack. */
regs
->
si
=
(
unsigned
long
)
&
frame
->
info
;
regs
->
dx
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
regs
->
sp
=
(
unsigned
long
)
frame
;
...
...
@@ -469,8 +469,8 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
}
#endif
/* CONFIG_X86_32 */
static
int
x32_setup_rt_frame
(
int
sig
,
struct
k_sigaction
*
ka
,
siginfo_t
*
info
,
compat_sigset_t
*
set
,
static
int
x32_setup_rt_frame
(
struct
ksignal
*
ksig
,
compat_sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
#ifdef CONFIG_X86_X32_ABI
...
...
@@ -479,13 +479,13 @@ static int x32_setup_rt_frame(int sig, struct k_sigaction *ka,
int
err
=
0
;
void
__user
*
fpstate
=
NULL
;
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
frame
=
get_sigframe
(
&
ksig
->
ka
,
regs
,
sizeof
(
*
frame
),
&
fpstate
);
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
return
-
EFAULT
;
if
(
k
a
->
sa
.
sa_flags
&
SA_SIGINFO
)
{
if
(
copy_siginfo_to_user32
(
&
frame
->
info
,
info
))
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_SIGINFO
)
{
if
(
copy_siginfo_to_user32
(
&
frame
->
info
,
&
ksig
->
info
))
return
-
EFAULT
;
}
...
...
@@ -499,8 +499,8 @@ static int x32_setup_rt_frame(int sig, struct k_sigaction *ka,
err
|=
__compat_save_altstack
(
&
frame
->
uc
.
uc_stack
,
regs
->
sp
);
put_user_ex
(
0
,
&
frame
->
uc
.
uc__pad0
);
if
(
k
a
->
sa
.
sa_flags
&
SA_RESTORER
)
{
restorer
=
k
a
->
sa
.
sa_restorer
;
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
{
restorer
=
k
sig
->
ka
.
sa
.
sa_restorer
;
}
else
{
/* could use a vstub here */
restorer
=
NULL
;
...
...
@@ -518,10 +518,10 @@ static int x32_setup_rt_frame(int sig, struct k_sigaction *ka,
/* Set up registers for signal handler */
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
ip
=
(
unsigned
long
)
k
a
->
sa
.
sa_handler
;
regs
->
ip
=
(
unsigned
long
)
k
sig
->
ka
.
sa
.
sa_handler
;
/* We use the x32 calling convention here... */
regs
->
di
=
sig
;
regs
->
di
=
ksig
->
sig
;
regs
->
si
=
(
unsigned
long
)
&
frame
->
info
;
regs
->
dx
=
(
unsigned
long
)
&
frame
->
uc
;
...
...
@@ -611,30 +611,29 @@ static int signr_convert(int sig)
}
static
int
setup_rt_frame
(
int
sig
,
struct
k_sigaction
*
ka
,
siginfo_t
*
info
,
struct
pt_regs
*
regs
)
setup_rt_frame
(
struct
ksignal
*
ksig
,
struct
pt_regs
*
regs
)
{
int
usig
=
signr_convert
(
sig
);
int
usig
=
signr_convert
(
ksig
->
sig
);
sigset_t
*
set
=
sigmask_to_save
();
compat_sigset_t
*
cset
=
(
compat_sigset_t
*
)
set
;
/* Set up the stack frame */
if
(
is_ia32_frame
())
{
if
(
k
a
->
sa
.
sa_flags
&
SA_SIGINFO
)
return
ia32_setup_rt_frame
(
usig
,
k
a
,
info
,
cset
,
regs
);
if
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_SIGINFO
)
return
ia32_setup_rt_frame
(
usig
,
k
sig
,
cset
,
regs
);
else
return
ia32_setup_frame
(
usig
,
k
a
,
cset
,
regs
);
return
ia32_setup_frame
(
usig
,
k
sig
,
cset
,
regs
);
}
else
if
(
is_x32_frame
())
{
return
x32_setup_rt_frame
(
usig
,
ka
,
info
,
cset
,
regs
);
return
x32_setup_rt_frame
(
ksig
,
cset
,
regs
);
}
else
{
return
__setup_rt_frame
(
sig
,
ka
,
info
,
set
,
regs
);
return
__setup_rt_frame
(
ksig
->
sig
,
ksig
,
set
,
regs
);
}
}
static
void
handle_signal
(
unsigned
long
sig
,
siginfo_t
*
info
,
struct
k_sigaction
*
ka
,
struct
pt_regs
*
regs
)
handle_signal
(
struct
ksignal
*
ksig
,
struct
pt_regs
*
regs
)
{
bool
failed
;
/* Are we from a system call? */
if
(
syscall_get_nr
(
current
,
regs
)
>=
0
)
{
/* If so, check system call restarting.. */
...
...
@@ -645,7 +644,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
break
;
case
-
ERESTARTSYS
:
if
(
!
(
k
a
->
sa
.
sa_flags
&
SA_RESTART
))
{
if
(
!
(
k
sig
->
ka
.
sa
.
sa_flags
&
SA_RESTART
))
{
regs
->
ax
=
-
EINTR
;
break
;
}
...
...
@@ -665,16 +664,12 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
likely
(
test_and_clear_thread_flag
(
TIF_FORCED_TF
)))
regs
->
flags
&=
~
X86_EFLAGS_TF
;
if
(
setup_rt_frame
(
sig
,
ka
,
info
,
regs
)
<
0
)
{
force_sigsegv
(
sig
,
current
);
return
;
}
failed
=
(
setup_rt_frame
(
ksig
,
regs
)
<
0
);
if
(
!
failed
)
{
/*
* Clear the direction flag as per the ABI for function entry.
*/
regs
->
flags
&=
~
X86_EFLAGS_DF
;
/*
* Clear TF when entering the signal handler, but
* notify any tracer that was single-stepping it.
...
...
@@ -682,9 +677,8 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
* handler too.
*/
regs
->
flags
&=
~
X86_EFLAGS_TF
;
signal_delivered
(
sig
,
info
,
ka
,
regs
,
test_thread_flag
(
TIF_SINGLESTEP
));
}
signal_setup_done
(
failed
,
ksig
,
test_thread_flag
(
TIF_SINGLESTEP
));
}
#ifdef CONFIG_X86_32
...
...
@@ -701,14 +695,11 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
*/
static
void
do_signal
(
struct
pt_regs
*
regs
)
{
struct
k_sigaction
ka
;
siginfo_t
info
;
int
signr
;
struct
ksignal
ksig
;
signr
=
get_signal_to_deliver
(
&
info
,
&
ka
,
regs
,
NULL
);
if
(
signr
>
0
)
{
if
(
get_signal
(
&
ksig
))
{
/* Whee! Actually deliver the signal. */
handle_signal
(
signr
,
&
info
,
&
ka
,
regs
);
handle_signal
(
&
ksig
,
regs
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录