Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Keyboard Man_俊
rt-thread
提交
52761fb9
R
rt-thread
项目概览
Keyboard Man_俊
/
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,发现更多精彩内容 >>
未验证
提交
52761fb9
编写于
9月 01, 2018
作者:
B
Bernard Xiong
提交者:
GitHub
9月 01, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1756 from RT-Thread/feature_libdl
Feature libdl
上级
f0ab0062
7dc042e6
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
17 addition
and
93 deletion
+17
-93
bsp/beaglebone/am335x_sk.ewp
bsp/beaglebone/am335x_sk.ewp
+0
-3
bsp/bf533/vdsp/bf533.dpj
bsp/bf533/vdsp/bf533.dpj
+0
-18
bsp/bf533/vdsp/bf533.mak
bsp/bf533/vdsp/bf533.mak
+0
-4
bsp/lpc54608-LPCXpresso/project.ewp
bsp/lpc54608-LPCXpresso/project.ewp
+0
-3
bsp/lpc54608-LPCXpresso/project.uvoptx
bsp/lpc54608-LPCXpresso/project.uvoptx
+0
-12
bsp/lpc54608-LPCXpresso/project.uvprojx
bsp/lpc54608-LPCXpresso/project.uvprojx
+0
-7
bsp/lpc54608-LPCXpresso/rtconfig.h
bsp/lpc54608-LPCXpresso/rtconfig.h
+1
-1
bsp/mb9bf500r/fm3_easy_kit.ewp
bsp/mb9bf500r/fm3_easy_kit.ewp
+0
-3
bsp/mb9bf500r/project.uvopt
bsp/mb9bf500r/project.uvopt
+0
-14
bsp/mb9bf500r/project.uvproj
bsp/mb9bf500r/project.uvproj
+0
-5
bsp/mini2440/project.Uv2
bsp/mini2440/project.Uv2
+0
-1
bsp/mini2440/project.uvproj
bsp/mini2440/project.uvproj
+0
-7
bsp/nios_ii/readme_cn.txt
bsp/nios_ii/readme_cn.txt
+0
-2
bsp/pic32ethernet/project.cbp
bsp/pic32ethernet/project.cbp
+0
-4
bsp/rx/project.vpj
bsp/rx/project.vpj
+0
-2
components/finsh/msh.c
components/finsh/msh.c
+9
-7
components/libc/libdl/dlelf.c
components/libc/libdl/dlelf.c
+1
-0
components/libc/libdl/dlmodule.c
components/libc/libdl/dlmodule.c
+6
-0
未找到文件。
bsp/beaglebone/am335x_sk.ewp
浏览文件 @
52761fb9
...
...
@@ -1099,9 +1099,6 @@
<file>
<name>
$PROJ_DIR$\..\..\src\mempool.c
</name>
</file>
<file>
<name>
$PROJ_DIR$\..\..\src\module.c
</name>
</file>
<file>
<name>
$PROJ_DIR$\..\..\src\object.c
</name>
</file>
...
...
bsp/bf533/vdsp/bf533.dpj
浏览文件 @
52761fb9
...
...
@@ -453,24 +453,6 @@
</file-configuration>
</file-configurations>
</file>
<file
name=
"..\..\..\src\module.c"
>
<file-configurations>
<file-configuration
name=
"Debug"
>
<excluded-flag
value=
"no"
/>
<build-with-flag
value=
"project"
/>
<intermediate-dir>
.\Debug
</intermediate-dir>
<output-dir>
.\Debug
</output-dir>
</file-configuration>
<file-configuration
name=
"Release"
>
<excluded-flag
value=
"no"
/>
<build-with-flag
value=
"project"
/>
<intermediate-dir>
.\Release
</intermediate-dir>
<output-dir>
.\Release
</output-dir>
</file-configuration>
</file-configurations>
</file>
<file
name=
"..\..\..\src\module.h"
>
</file>
<file
name=
"..\..\..\src\object.c"
>
<file-configurations>
<file-configuration
name=
"Debug"
>
...
...
bsp/bf533/vdsp/bf533.mak
浏览文件 @
52761fb9
...
...
@@ -138,10 +138,6 @@ bf533_Debug : ./Debug/bf533.ldr
@
echo
"..
\.
.
\.
.
\s
rc
\m
empool.c"
$(VDSP)
/ccblkfn.exe
-c
..
\.
.
\.
.
\s
rc
\m
empool.c
-file-attr
ProjectName
=
bf533
-g
-structs-do-not-overlap
-no-multiline
-I
../../../include
-I
../
-I
../../../components/finsh
-I
../../../libcpu/blackfin/bf53x
-I
../../../src
-double-size-64
-decls-strong
-warn-protos
-proc
ADSP-BF533
-o
.
\D
ebug
\m
empool.doj
-MM
./Debug/module.doj
:
../../../src/module.c ../../../include/rthw.h ../../../include/rtthread.h ../../../include/rtdef.h ../rtconfig.h $(VDSP)/Blackfin/include/stdarg.h $(VDSP)/Blackfin/include/yvals.h ../../../include/rtdebug.h ../../../include/rtservice.h ../../../include/rtm.h $(VDSP)/Blackfin/include/string.h
@
echo
"..
\.
.
\.
.
\s
rc
\m
odule.c"
$(VDSP)
/ccblkfn.exe
-c
..
\.
.
\.
.
\s
rc
\m
odule.c
-file-attr
ProjectName
=
bf533
-g
-structs-do-not-overlap
-no-multiline
-I
../../../include
-I
../
-I
../../../components/finsh
-I
../../../libcpu/blackfin/bf53x
-I
../../../src
-double-size-64
-decls-strong
-warn-protos
-proc
ADSP-BF533
-o
.
\D
ebug
\m
odule.doj
-MM
./Debug/object.doj
:
../../../src/object.c ../../../include/rtthread.h ../../../include/rtdef.h ../rtconfig.h $(VDSP)/Blackfin/include/stdarg.h $(VDSP)/Blackfin/include/yvals.h ../../../include/rtdebug.h ../../../include/rtservice.h ../../../include/rthw.h
@
echo
"..
\.
.
\.
.
\s
rc
\o
bject.c"
$(VDSP)
/ccblkfn.exe
-c
..
\.
.
\.
.
\s
rc
\o
bject.c
-file-attr
ProjectName
=
bf533
-g
-structs-do-not-overlap
-no-multiline
-I
../../../include
-I
../
-I
../../../components/finsh
-I
../../../libcpu/blackfin/bf53x
-I
../../../src
-double-size-64
-decls-strong
-warn-protos
-proc
ADSP-BF533
-o
.
\D
ebug
\o
bject.doj
-MM
...
...
bsp/lpc54608-LPCXpresso/project.ewp
浏览文件 @
52761fb9
...
...
@@ -2111,9 +2111,6 @@
<file>
<name>$PROJ_DIR$\../../src/mempool.c</name>
</file>
<file>
<name>$PROJ_DIR$\../../src/module.c</name>
</file>
<file>
<name>$PROJ_DIR$\../../src/object.c</name>
</file>
...
...
bsp/lpc54608-LPCXpresso/project.uvoptx
浏览文件 @
52761fb9
...
...
@@ -1082,18 +1082,6 @@
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
73
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
../../src/module.c
</PathWithFileName>
<FilenameWithoutPath>
module.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
5
</GroupNumber>
<FileNumber>
74
</FileNumber>
...
...
bsp/lpc54608-LPCXpresso/project.uvprojx
浏览文件 @
52761fb9
...
...
@@ -891,13 +891,6 @@
<FilePath>
..\..\src\mempool.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
module.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\src\module.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
object.c
</FileName>
...
...
bsp/lpc54608-LPCXpresso/rtconfig.h
浏览文件 @
52761fb9
...
...
@@ -41,7 +41,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart0"
#define RT_USING_MODULE
//
#define RT_USING_MODULE
#define ARCH_ARM
#define ARCH_ARM_CORTEX_M
#define ARCH_ARM_CORTEX_M4
...
...
bsp/mb9bf500r/fm3_easy_kit.ewp
浏览文件 @
52761fb9
...
...
@@ -1784,9 +1784,6 @@
<file>
<name>
$PROJ_DIR$\..\..\src\mempool.c
</name>
</file>
<file>
<name>
$PROJ_DIR$\..\..\src\module.c
</name>
</file>
<file>
<name>
$PROJ_DIR$\..\..\src\object.c
</name>
</file>
...
...
bsp/mb9bf500r/project.uvopt
浏览文件 @
52761fb9
...
...
@@ -484,20 +484,6 @@
<PathWithFileName>
..\..\src\mempool.c
</PathWithFileName>
<FilenameWithoutPath>
mempool.c
</FilenameWithoutPath>
</File>
<File>
<GroupNumber>
4
</GroupNumber>
<FileNumber>
23
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<Focus>
0
</Focus>
<ColumnNumber>
0
</ColumnNumber>
<tvExpOptDlg>
0
</tvExpOptDlg>
<TopLine>
0
</TopLine>
<CurrentLine>
0
</CurrentLine>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\src\module.c
</PathWithFileName>
<FilenameWithoutPath>
module.c
</FilenameWithoutPath>
</File>
<File>
<GroupNumber>
4
</GroupNumber>
<FileNumber>
24
</FileNumber>
...
...
bsp/mb9bf500r/project.uvproj
浏览文件 @
52761fb9
...
...
@@ -513,11 +513,6 @@
<FileType>
1
</FileType>
<FilePath>
..\..\src\mempool.c
</FilePath>
</File>
<File>
<FileName>
module.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\src\module.c
</FilePath>
</File>
<File>
<FileName>
object.c
</FileName>
<FileType>
1
</FileType>
...
...
bsp/mini2440/project.Uv2
浏览文件 @
52761fb9
...
...
@@ -30,7 +30,6 @@ File 3,1,<../../src/irq.c><irq.c>
File 3,1,<../../src/kservice.c><kservice.c>
File 3,1,<../../src/mem.c><mem.c>
File 3,1,<../../src/mempool.c><mempool.c>
File 3,1,<../../src/module.c><module.c>
File 3,1,<../../src/object.c><object.c>
File 3,1,<../../src/scheduler.c><scheduler.c>
File 3,1,<../../src/signal.c><signal.c>
...
...
bsp/mini2440/project.uvproj
浏览文件 @
52761fb9
...
...
@@ -493,13 +493,6 @@
<FilePath>
../../src/mempool.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
module.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
../../src/module.c
</FilePath>
</File>
</Files>
<Files>
<File>
<FileName>
object.c
</FileName>
...
...
bsp/nios_ii/readme_cn.txt
浏览文件 @
52761fb9
...
...
@@ -26,8 +26,6 @@
kservice.h
mem.c
mempool.c
module.c
module.h
object.c
rtm.c
scheduler.c
...
...
bsp/pic32ethernet/project.cbp
浏览文件 @
52761fb9
...
...
@@ -412,10 +412,6 @@
<Unit
filename=
"..\..\src\mempool.c"
>
<Option
compilerVar=
"CC"
/>
</Unit>
<Unit
filename=
"..\..\src\module.c"
>
<Option
compilerVar=
"CC"
/>
</Unit>
<Unit
filename=
"..\..\src\module.h"
/>
<Unit
filename=
"..\..\src\object.c"
>
<Option
compilerVar=
"CC"
/>
</Unit>
...
...
bsp/rx/project.vpj
浏览文件 @
52761fb9
...
...
@@ -303,8 +303,6 @@
<F
N=
"../../src/mem.c"
/>
<F
N=
"../../src/memheap.c"
/>
<F
N=
"../../src/mempool.c"
/>
<F
N=
"../../src/module.c"
/>
<F
N=
"../../src/module.h"
/>
<F
N=
"../../src/object.c"
/>
<F
N=
"../../src/scheduler.c"
/>
<F
N=
"../../src/SConscript"
/>
...
...
components/finsh/msh.c
浏览文件 @
52761fb9
...
...
@@ -376,25 +376,27 @@ int msh_exec(char *cmd, rt_size_t length)
{
return
cmd_ret
;
}
#if defined(RT_USING_MODULE) && defined(RT_USING_DFS)
if
(
msh_exec_module
(
cmd
,
length
)
==
0
)
#ifdef RT_USING_DFS
#ifdef DFS_USING_WORKDIR
if
(
msh_exec_script
(
cmd
,
length
)
==
0
)
{
return
0
;
}
#endif
#if
defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR)
if
(
msh_exec_
script
(
cmd
,
length
)
==
0
)
#if
def RT_USING_MODULE
if
(
msh_exec_
module
(
cmd
,
length
)
==
0
)
{
return
0
;
}
#endif
#if
defined(RT_USING_LWP) && defined(RT_USING_DFS)
#if
def RT_USING_LWP
if
(
_msh_exec_lwp
(
cmd
,
length
)
==
0
)
{
return
0
;
}
#endif
#endif
/* truncate the cmd at the first space. */
...
...
@@ -449,8 +451,8 @@ void msh_auto_complete_path(char *path)
ptr
=
path
;
for
(;;)
{
if
(
*
ptr
==
'/'
)
index
=
ptr
+
1
;
if
(
!*
ptr
)
break
;
if
(
*
ptr
==
'/'
)
index
=
ptr
+
1
;
if
(
!*
ptr
)
break
;
ptr
++
;
}
...
...
components/libc/libdl/dlelf.c
浏览文件 @
52761fb9
...
...
@@ -277,6 +277,7 @@ rt_err_t dlmodule_load_relocated_object(struct rt_dlmodule* module, void *module
rt_kprintf
(
"Module: allocate space failed.
\n
"
);
return
-
RT_ERROR
;
}
module
->
mem_size
=
module_size
;
/* zero all space */
ptr
=
module
->
mem_space
;
...
...
components/libc/libdl/dlmodule.c
浏览文件 @
52761fb9
...
...
@@ -491,6 +491,12 @@ struct rt_dlmodule* dlmodule_load(const char* filename)
/* increase module reference count */
module
->
nref
++
;
/* deal with cache */
#ifdef RT_USING_CACHE
rt_hw_cpu_dcache_ops
(
RT_HW_CACHE_FLUSH
,
module
->
mem_space
,
module
->
mem_size
);
rt_hw_cpu_icache_ops
(
RT_HW_CACHE_INVALIDATE
,
module
->
mem_space
,
module
->
mem_size
);
#endif
/* set module initialization and cleanup function */
module
->
init_func
=
dlsym
(
module
,
"module_init"
);
module
->
cleanup_func
=
dlsym
(
module
,
"module_cleanup"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录