diff options
| -rw-r--r-- | bsp/mini2440/run_module.c | 3 | ||||
| -rw-r--r-- | src/module.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bsp/mini2440/run_module.c b/bsp/mini2440/run_module.c index a8d50776f5..274fd31ef0 100644 --- a/bsp/mini2440/run_module.c +++ b/bsp/mini2440/run_module.c @@ -19,6 +19,9 @@ #if defined(RT_USING_FINSH) && defined(RT_USING_MODULE)
#include <finsh.h>
+extern struct rt_module* rt_module_load(void* module_ptr, const rt_uint8_t* name);
+extern void rt_module_run(struct rt_module* module);
+
void run_module(const char* filename)
{
int fd, length;
diff --git a/src/module.h b/src/module.h index 486e956b4f..0db75da278 100644 --- a/src/module.h +++ b/src/module.h @@ -203,6 +203,6 @@ typedef struct { /* Symbol table index */
#define STN_UNDEF 0 /* undefined */
-typedef rt_err_t (*elf_entry)( const void * env, struct rt_module_info **module_info;);
+typedef rt_err_t (*elf_entry)( const void * env, struct rt_module_info **module_info);
#endif
|
