From df64a297abaf382d21aedbf7bf8b8e52e1c774a5 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 10 Jun 2018 18:46:11 +0800 Subject: [Kernel] Remove memory ops when SLAB and module enable --- src/module.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/module.c') 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; -- cgit v1.3.1