Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
3a17f757
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
大约 1 年 前同步成功
通知
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3a17f757
编写于
5月 26, 2011
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modernize coding style in sjlj asm
上级
86339bc4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
35 addition
and
35 deletion
+35
-35
src/setjmp/i386/longjmp.s
src/setjmp/i386/longjmp.s
+13
-13
src/setjmp/i386/setjmp.s
src/setjmp/i386/setjmp.s
+10
-10
src/setjmp/x86_64/longjmp.s
src/setjmp/x86_64/longjmp.s
+10
-10
src/setjmp/x86_64/setjmp.s
src/setjmp/x86_64/setjmp.s
+2
-2
未找到文件。
src/setjmp/i386/longjmp.s
浏览文件 @
3a17f757
...
...
@@ -4,19 +4,19 @@
.
type
longjmp
,%
function
_longjmp
:
longjmp
:
mov
l
4
(%
esp
),%
edx
mov
l
8
(%
esp
),%
eax
test
l
%
eax
,%
eax
jnz
.
L0
inc
l
%
eax
.
L0
:
mov
l
(%
edx
),%
ebx
mov
l
4
(%
edx
),%
esi
mov
l
8
(%
edx
),%
edi
mov
l
12
(%
edx
),%
ebp
mov
l
16
(%
edx
),%
ecx
mov
l
%
ecx
,%
esp
mov
l
20
(%
edx
),%
ecx
mov
4
(%
esp
),%
edx
mov
8
(%
esp
),%
eax
test
%
eax
,%
eax
jnz
1
f
inc
%
eax
1
:
mov
(%
edx
),%
ebx
mov
4
(%
edx
),%
esi
mov
8
(%
edx
),%
edi
mov
12
(%
edx
),%
ebp
mov
16
(%
edx
),%
ecx
mov
%
ecx
,%
esp
mov
20
(%
edx
),%
ecx
jmp
*%
ecx
.
size
_longjmp
,.-
_longjmp
.
size
longjmp
,.-
longjmp
src/setjmp/i386/setjmp.s
浏览文件 @
3a17f757
...
...
@@ -7,16 +7,16 @@
__setjmp
:
_setjmp
:
setjmp
:
mov
l
4
(%
esp
),
%
eax
mov
l
%
ebx
,
(%
eax
)
mov
l
%
esi
,
4
(%
eax
)
mov
l
%
edi
,
8
(%
eax
)
mov
l
%
ebp
,
12
(%
eax
)
lea
l
4
(%
esp
),
%
ecx
mov
l
%
ecx
,
16
(%
eax
)
mov
l
(%
esp
),
%
ecx
mov
l
%
ecx
,
20
(%
eax
)
xor
l
%
eax
,
%
eax
mov
4
(%
esp
),
%
eax
mov
%
ebx
,
(%
eax
)
mov
%
esi
,
4
(%
eax
)
mov
%
edi
,
8
(%
eax
)
mov
%
ebp
,
12
(%
eax
)
lea
4
(%
esp
),
%
ecx
mov
%
ecx
,
16
(%
eax
)
mov
(%
esp
),
%
ecx
mov
%
ecx
,
20
(%
eax
)
xor
%
eax
,
%
eax
ret
.
size
__setjmp
,.-
__setjmp
.
size
_setjmp
,.-
_setjmp
...
...
src/setjmp/x86_64/longjmp.s
浏览文件 @
3a17f757
...
...
@@ -7,18 +7,18 @@ _longjmp:
longjmp
:
mov
%
rsi
,%
rax
/*
val
will
be
longjmp
return
*/
test
%
rax
,%
rax
jnz
.
L0
jnz
1
f
inc
%
rax
/*
if
val
==
0
,
val
=
1
per
longjmp
semantics
*/
.
L0
:
mov
q
(%
rdi
),%
rbx
/*
rdi
is
the
jmp_buf
,
restore
regs
from
it
*/
mov
q
8
(%
rdi
),%
rbp
mov
q
16
(%
rdi
),%
r12
mov
q
24
(%
rdi
),%
r13
mov
q
32
(%
rdi
),%
r14
mov
q
40
(%
rdi
),%
r15
mov
q
48
(%
rdi
),%
rdx
/*
this
ends
up
being
the
stack
pointer
*/
1
:
mov
(%
rdi
),%
rbx
/*
rdi
is
the
jmp_buf
,
restore
regs
from
it
*/
mov
8
(%
rdi
),%
rbp
mov
16
(%
rdi
),%
r12
mov
24
(%
rdi
),%
r13
mov
32
(%
rdi
),%
r14
mov
40
(%
rdi
),%
r15
mov
48
(%
rdi
),%
rdx
/*
this
ends
up
being
the
stack
pointer
*/
mov
%
rdx
,%
rsp
mov
q
56
(%
rdi
),%
rdx
/*
this
is
the
instruction
pointer
*/
mov
56
(%
rdi
),%
rdx
/*
this
is
the
instruction
pointer
*/
jmp
*%
rdx
/*
goto
saved
address
without
altering
rsp
*/
.
size
_longjmp
,.-
_longjmp
.
size
longjmp
,.-
longjmp
src/setjmp/x86_64/setjmp.s
浏览文件 @
3a17f757
...
...
@@ -14,9 +14,9 @@ setjmp:
mov
%
r13
,
24
(%
rdi
)
mov
%
r14
,
32
(%
rdi
)
mov
%
r15
,
40
(%
rdi
)
lea
q
8
(%
rsp
),%
rdx
/*
this
is
our
rsp
WITHOUT
current
ret
addr
*/
lea
8
(%
rsp
),%
rdx
/*
this
is
our
rsp
WITHOUT
current
ret
addr
*/
mov
%
rdx
,
48
(%
rdi
)
mov
q
(%
rsp
),%
rdx
/*
save
return
addr
ptr
for
new
rip
*/
mov
(%
rsp
),%
rdx
/*
save
return
addr
ptr
for
new
rip
*/
mov
%
rdx
,
56
(%
rdi
)
xor
%
rax
,%
rax
/*
always
return
0
*/
ret
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录