diff options
| author | bernard <[email protected]> | 2013-07-22 07:46:10 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2013-07-22 07:46:10 +0800 |
| commit | b96b35613f2cdc8118f083a3e2795788915319d7 (patch) | |
| tree | 4318798c8331e2b65b27ae9f1949df3a31ffce4f /src/module.c | |
| parent | adc678dabbcccd1f17cc1392882934ed5791a2b8 (diff) | |
add mount table
Diffstat (limited to 'src/module.c')
| -rw-r--r-- | src/module.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/module.c b/src/module.c index 5469d46523..ac689dbade 100644 --- a/src/module.c +++ b/src/module.c @@ -80,7 +80,7 @@ static struct rt_module_symtab *_rt_module_symtab_end = RT_NULL; * * This function will initialize system module */ -void rt_system_module_init(void) +int rt_system_module_init(void) { #ifdef __GNUC__ extern int __rtmsymtab_start; @@ -100,6 +100,7 @@ void rt_system_module_init(void) /* initialize heap semaphore */ rt_sem_init(&mod_sem, "module", 1, RT_IPC_FLAG_FIFO); #endif + return 0; } INIT_COMPONENT_EXPORT(rt_system_module_init); @@ -805,9 +806,6 @@ rt_module_t rt_module_load(const char *name, void *module_ptr) if (elf_module->e_entry != 0) { - rt_uint32_t *stack_size; - rt_uint8_t *priority; - #ifdef RT_USING_SLAB /* init module memory allocator */ module->mem_list = RT_NULL; @@ -1180,8 +1178,6 @@ rt_err_t rt_module_destroy(rt_module_t module) */ rt_err_t rt_module_unload(rt_module_t module) { - int i; - rt_err_t result; struct rt_object *object; struct rt_list_node *list; |
