diff options
| author | Bernard Xiong <[email protected]> | 2018-06-10 18:46:11 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-06-10 18:46:11 +0800 |
| commit | df64a297abaf382d21aedbf7bf8b8e52e1c774a5 (patch) | |
| tree | 323d24995a5e3e2ad2671ba070e586ecea182273 /src/module.c | |
| parent | 564df04da1e0d0e7e3ac374fc7c3a51f2b0dba21 (diff) | |
[Kernel] Remove memory ops when SLAB and module enable
Diffstat (limited to 'src/module.c')
| -rw-r--r-- | src/module.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/module.c b/src/module.c index ce9931db3c..843b3364a9 100644 --- a/src/module.c +++ b/src/module.c @@ -65,30 +65,6 @@ #define RT_USING_MODULE_PRIO (RT_THREAD_PRIORITY_MAX - 2) #endif -#ifdef RT_USING_SLAB -#define PAGE_COUNT_MAX 256 - -/* module memory allocator */ -struct rt_mem_head -{ - rt_size_t size; /* size of memory block */ - struct rt_mem_head *next; /* next valid memory block */ -}; - -struct rt_page_info -{ - rt_uint32_t *page_ptr; - rt_uint32_t npage; -}; - -static void *rt_module_malloc_page(rt_size_t npages); -static void rt_module_free_page(rt_module_t module, - void *page_ptr, - rt_size_t npages); - -static struct rt_semaphore mod_sem; -#endif - static struct rt_module_symtab *_rt_module_symtab_begin = RT_NULL; static struct rt_module_symtab *_rt_module_symtab_end = RT_NULL; |
