Browse Source

fix armcc compile error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@749 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
470feff16f
2 changed files with 4 additions and 1 deletions
  1. 3 0
      bsp/mini2440/run_module.c
  2. 1 1
      src/module.h

+ 3 - 0
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;

+ 1 - 1
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