Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
0208fc55
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0208fc55
编写于
2月 09, 2021
作者:
L
liruncong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[components]SECTION=>RT_SECTION(与catch2中SECTION冲突)
上级
12d5ca60
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
17 deletion
+17
-17
components/finsh/finsh_api.h
components/finsh/finsh_api.h
+8
-8
components/net/at/include/at.h
components/net/at/include/at.h
+1
-1
components/utilities/utest/utest.h
components/utilities/utest/utest.h
+1
-1
components/vmm/vmm.c
components/vmm/vmm.c
+3
-3
components/vmm/vmm_context.c
components/vmm/vmm_context.c
+4
-4
未找到文件。
components/finsh/finsh_api.h
浏览文件 @
0208fc55
...
...
@@ -90,9 +90,9 @@ struct finsh_syscall* finsh_syscall_lookup(const char* name);
#else
#define FINSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
const char __fsym_##cmd##_name[] SECTION(".rodata.name") = #cmd; \
const char __fsym_##cmd##_desc[] SECTION(".rodata.name") = #desc; \
RT_USED const struct finsh_syscall __fsym_##cmd SECTION("FSymTab")= \
const char __fsym_##cmd##_name[]
RT_
SECTION(".rodata.name") = #cmd; \
const char __fsym_##cmd##_desc[]
RT_
SECTION(".rodata.name") = #desc; \
RT_USED const struct finsh_syscall __fsym_##cmd
RT_
SECTION("FSymTab")= \
{ \
__fsym_##cmd##_name, \
__fsym_##cmd##_desc, \
...
...
@@ -100,9 +100,9 @@ struct finsh_syscall* finsh_syscall_lookup(const char* name);
};
#define FINSH_VAR_EXPORT(name, type, desc) \
const char __vsym_##name##_name[] SECTION(".rodata.name") = #name; \
const char __vsym_##name##_desc[] SECTION(".rodata.name") = #desc; \
RT_USED const struct finsh_sysvar __vsym_##name SECTION("VSymTab")= \
const char __vsym_##name##_name[]
RT_
SECTION(".rodata.name") = #name; \
const char __vsym_##name##_desc[]
RT_
SECTION(".rodata.name") = #desc; \
RT_USED const struct finsh_sysvar __vsym_##name
RT_
SECTION("VSymTab")= \
{ \
__vsym_##name##_name, \
__vsym_##name##_desc, \
...
...
@@ -155,7 +155,7 @@ struct finsh_syscall* finsh_syscall_lookup(const char* name);
#else
#define FINSH_FUNCTION_EXPORT_CMD(name, cmd, desc) \
const char __fsym_##cmd##_name[] = #cmd; \
RT_USED const struct finsh_syscall __fsym_##cmd SECTION("FSymTab")= \
RT_USED const struct finsh_syscall __fsym_##cmd
RT_
SECTION("FSymTab")= \
{ \
__fsym_##cmd##_name, \
(syscall_func)&name \
...
...
@@ -163,7 +163,7 @@ struct finsh_syscall* finsh_syscall_lookup(const char* name);
#define FINSH_VAR_EXPORT(name, type, desc) \
const char __vsym_##name##_name[] = #name; \
RT_USED const struct finsh_sysvar __vsym_##name SECTION("VSymTab")= \
RT_USED const struct finsh_sysvar __vsym_##name
RT_
SECTION("VSymTab")= \
{ \
__vsym_##name##_name, \
type, \
...
...
components/net/at/include/at.h
浏览文件 @
0208fc55
...
...
@@ -50,7 +50,7 @@ extern "C" {
#endif
#define AT_CMD_EXPORT(_name_, _args_expr_, _test_, _query_, _setup_, _exec_) \
RT_USED static const struct at_cmd __at_cmd_##_test_##_query_##_setup_##_exec_ SECTION("RtAtCmdTab") = \
RT_USED static const struct at_cmd __at_cmd_##_test_##_query_##_setup_##_exec_
RT_
SECTION("RtAtCmdTab") = \
{ \
_name_, \
_args_expr_, \
...
...
components/utilities/utest/utest.h
浏览文件 @
0208fc55
...
...
@@ -138,7 +138,7 @@ utest_t utest_handle_get(void);
*/
#define UTEST_TC_EXPORT(testcase, name, init, cleanup, timeout) \
RT_USED static const struct utest_tc_export _utest_testcase \
SECTION("UtestTcTab") = \
RT_
SECTION("UtestTcTab") = \
{ \
name, \
timeout, \
...
...
components/vmm/vmm.c
浏览文件 @
0208fc55
...
...
@@ -22,9 +22,9 @@
extern
void
rt_hw_interrupt_init
(
void
);
extern
void
rt_application_init
(
void
);
void
vmm_entry
(
struct
vmm_entry_param
*
param
)
SECTION
(
".vmm_init"
);
void
vmm_entry
(
struct
vmm_entry_param
*
param
)
RT_
SECTION
(
".vmm_init"
);
struct
rt_thread
vmm_thread
SECTION
(
".bss.share.vmm"
);
struct
rt_thread
vmm_thread
RT_
SECTION
(
".bss.share.vmm"
);
extern
rt_uint8_t
vmm_stack_start
;
extern
rt_uint8_t
vmm_stack_end
;
...
...
@@ -75,7 +75,7 @@ static void vmm_entry_glue(rt_uint32_t level,
unsigned
int
kernel_domain
)
/* inline would make the section setting meaningless */
__attribute__
((
noinline
))
SECTION
(
".vmm_glue"
);
RT_
SECTION
(
".vmm_glue"
);
static
void
vmm_entry_glue
(
rt_uint32_t
level
,
unsigned
int
vmm_domain
,
unsigned
int
kernel_domain
)
...
...
components/vmm/vmm_context.c
浏览文件 @
0208fc55
...
...
@@ -18,7 +18,7 @@
#include "vmm_context.h"
struct
rt_vmm_share_layout
rt_vmm_share
SECTION
(
".vmm.share"
);
struct
rt_vmm_share_layout
rt_vmm_share
RT_
SECTION
(
".vmm.share"
);
volatile
struct
vmm_context
*
_vmm_context
=
RT_NULL
;
...
...
@@ -31,13 +31,13 @@ void vmm_context_init(void *context_addr)
}
#ifdef RT_VMM_USING_DOMAIN
unsigned
long
guest_domain_val
SECTION
(
".bss.share"
);
unsigned
long
vmm_domain_val
SECTION
(
".bss.share"
);
unsigned
long
guest_domain_val
RT_
SECTION
(
".bss.share"
);
unsigned
long
vmm_domain_val
RT_
SECTION
(
".bss.share"
);
/* some RT-Thread code need to be called in the guest
* context(rt_thread_idle_excute for example). To simplify the code, we need a
* "super" domain mode to have access of both side. The code executed in super
* domain mode is restricted and should be harmless. */
unsigned
long
super_domain_val
SECTION
(
".bss.share"
);
unsigned
long
super_domain_val
RT_
SECTION
(
".bss.share"
);
void
vmm_context_init_domain
(
struct
vmm_domain
*
domain
)
{
asm
volatile
(
"mrc p15, 0, %0, c3, c0
\n
"
:
"=r"
(
guest_domain_val
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录