Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
TinyCC
提交
46bf3f94
提交
46bf3f94
编辑于
7月 09, 2021
作者:
Brian Callahan
浏览文件
Add register definitions for OpenBSD/riscv64
上级
ab13f1a2
变更
1
Hide whitespace changes
Inline
Side-by-side
tccrun.c
浏览文件 @
46bf3f94
...
...
@@ -733,6 +733,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc)
#elif defined(__aarch64__)
rc
->
ip
=
uc
->
uc_mcontext
.
pc
;
rc
->
fp
=
uc
->
uc_mcontext
.
regs
[
29
];
#elif defined(__riscv) && defined(__OpenBSD__)
rc
->
ip
=
uc
->
sc_sepc
;
rc
->
fp
=
uc
->
sc_s
[
0
];
#elif defined(__riscv)
rc
->
ip
=
uc
->
uc_mcontext
.
__gregs
[
REG_PC
];
rc
->
fp
=
uc
->
uc_mcontext
.
__gregs
[
REG_S0
];
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录