Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
a8da6c2f
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
接近 2 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a8da6c2f
编写于
11月 25, 2012
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate
上级
4b75f4ed
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
35 addition
and
12 deletion
+35
-12
arch/arm/bits/signal.h
arch/arm/bits/signal.h
+1
-0
arch/i386/bits/signal.h
arch/i386/bits/signal.h
+5
-4
arch/microblaze/bits/signal.h
arch/microblaze/bits/signal.h
+1
-0
arch/mips/bits/signal.h
arch/mips/bits/signal.h
+19
-1
arch/powerpc/bits/signal.h
arch/powerpc/bits/signal.h
+1
-1
arch/x86_64/bits/signal.h
arch/x86_64/bits/signal.h
+5
-4
include/signal.h
include/signal.h
+1
-0
include/ucontext.h
include/ucontext.h
+2
-2
未找到文件。
arch/arm/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -2,6 +2,7 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef
int
greg_t
,
gregset_t
[
18
];
typedef
struct
sigcontext
{
unsigned
long
trap_no
,
error_code
,
oldmask
;
...
...
arch/i386/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -2,13 +2,14 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
struct
_fpstate
{
typedef
int
greg_t
,
gregset_t
[
19
];
typedef
struct
_fpstate
{
unsigned
long
cw
,
sw
,
tag
,
ipoff
,
cssel
,
dataoff
,
datasel
;
struct
{
unsigned
short
significand
[
4
],
exponent
;
}
_st
[
8
];
unsigned
long
status
;
};
}
*
fpregset_t
;
struct
sigcontext
{
unsigned
short
gs
,
__gsh
,
fs
,
__fsh
,
es
,
__esh
,
ds
,
__dsh
;
unsigned
long
edi
,
esi
,
ebp
,
esp
,
ebx
,
edx
,
ecx
,
eax
;
...
...
@@ -20,8 +21,8 @@ struct sigcontext {
unsigned
long
oldmask
,
cr2
;
};
typedef
struct
{
unsigned
gregs
[
19
]
;
struct
_fpstate
*
fpregs
;
gregset_t
gregs
;
fpregset_t
fpregs
;
unsigned
long
oldmask
,
cr2
;
}
mcontext_t
;
#else
...
...
arch/microblaze/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -2,6 +2,7 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef
unsigned
long
greg_t
,
gregset_t
[
38
];
typedef
struct
sigcontext
{
struct
{
...
...
arch/mips/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -2,13 +2,31 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef
struct
sigcontext
typedef
unsigned
long
long
greg_t
,
gregset_t
[
32
];
typedef
struct
{
union
{
double
fp_dregs
[
32
];
struct
{
float
_fp_fregs
;
unsigned
_fp_pad
;
}
fp_fregs
[
32
];
}
fp_r
;
}
fpregset_t
;
struct
sigcontext
{
unsigned
sc_regmask
,
sc_status
;
unsigned
long
long
sc_pc
,
sc_regs
[
32
],
sc_fpregs
[
32
];
unsigned
sc_ownedfp
,
sc_fpc_csr
,
sc_fpc_eir
,
sc_used_math
,
sc_dsp
;
unsigned
long
long
sc_mdhi
,
sc_mdlo
;
unsigned
long
sc_hi1
,
sc_lo1
,
sc_hi2
,
sc_lo2
,
sc_hi3
,
sc_lo3
;
};
typedef
struct
{
unsigned
regmask
,
status
;
unsigned
long
long
pc
,
regs
[
32
],
fpregs
[
32
];
unsigned
ownedfp
,
fpc_csr
,
fpc_eir
,
used_math
,
dsp
;
unsigned
long
long
mdhi
,
mdlo
;
unsigned
long
hi1
,
lo1
,
hi2
,
lo2
,
hi3
,
lo3
;
}
mcontext_t
;
#else
typedef
struct
{
...
...
arch/powerpc/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -3,7 +3,7 @@
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef
unsigned
long
gregset_t
[
48
];
typedef
unsigned
long
greg
_t
,
greg
set_t
[
48
];
typedef
struct
{
double
fpregs
[
32
];
...
...
arch/x86_64/bits/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -2,7 +2,8 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
struct
_fpstate
{
typedef
long
long
greg_t
,
gregset_t
[
23
];
typedef
struct
_fpstate
{
unsigned
short
cwd
,
swd
,
ftw
,
fop
;
unsigned
long
long
rip
,
rdp
;
unsigned
mxcsr
,
mxcr_mask
;
...
...
@@ -13,7 +14,7 @@ struct _fpstate {
unsigned
element
[
4
];
}
_xmm
[
16
];
unsigned
padding
[
24
];
};
}
*
fpregset_t
;
struct
sigcontext
{
unsigned
long
r8
,
r9
,
r10
,
r11
,
r12
,
r13
,
r14
,
r15
;
unsigned
long
rdi
,
rsi
,
rbp
,
rbx
,
rdx
,
rax
,
rcx
,
rsp
,
rip
,
eflags
;
...
...
@@ -23,8 +24,8 @@ struct sigcontext {
unsigned
long
__reserved1
[
8
];
};
typedef
struct
{
unsigned
long
long
gregs
[
23
]
;
struct
_fpstate
*
fpregs
;
gregset_t
gregs
;
fpregset_t
fpregs
;
unsigned
long
long
__reserved1
[
8
];
}
mcontext_t
;
#else
...
...
include/signal.h
浏览文件 @
a8da6c2f
...
...
@@ -13,6 +13,7 @@ extern "C" {
#ifdef _GNU_SOURCE
#define __siginfo siginfo
#define __ucontext ucontext
#endif
#define __NEED_size_t
...
...
include/ucontext.h
浏览文件 @
a8da6c2f
...
...
@@ -8,8 +8,8 @@ extern "C" {
#include <signal.h>
#if
def _GNU_SOURCE
#define
ucontext __ucontext
#if
defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define
NGREG (sizeof(gregset_t)/sizeof(greg_t))
#endif
struct
__ucontext
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录