summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-11-24 01:27:45 +0000
committerqiuyiuestc <[email protected]>2010-11-24 01:27:45 +0000
commit56c6c301bcd923372797d6415ff38756705b92d0 (patch)
tree17d69772bc2f760233f0ee4b2ee690fbb4d2edaa /include
parentb5a2fde359360a9c86d3b165cb1f4bc85a7a306e (diff)
clean up code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1106 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 1cff976b49..b05aad5c78 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -371,44 +371,6 @@ struct rt_thread
};
/*@}*/
-#ifdef RT_USING_MODULE
-/*
- * module system
- */
-
-#define RT_MODULE_FLAG_WITHENTRY 0x00 /* with entry point */
-#define RT_MODULE_FLAG_WITHOUTENTRY 0x01 /* without entry point */
-
-struct rt_module
-{
- /* inherit from object */
- struct rt_object parent;
-
- rt_uint8_t* module_space; /* module memory space */
-
- void* module_entry; /* entry address of module's thread */
- rt_thread_t module_thread; /* stack size of module's thread */
- rt_uint32_t stack_size; /* priority of module's thread */
- rt_uint32_t thread_priority;
-
- /* module memory allocator */
- void* module_mem_list; /* module memory free list */
- rt_list_t module_page; /* module using page */
- void* page_node_pool;
-
- /* module symbol table */
- rt_uint32_t nsym;
- struct rt_module_symtab *symtab;
-
- /* reference count */
- rt_uint32_t nref;
-
- /* object in this module, module object is the last basic object type */
- struct rt_object_information module_object[RT_Object_Class_Unknown];
-};
-typedef struct rt_module* rt_module_t;
-#endif
-
/**
* @addtogroup IPC
*/
@@ -659,6 +621,44 @@ struct rt_device_blk_geometry
rt_uint32_t block_size; /* size to erase one block */
};
+#ifdef RT_USING_MODULE
+/*
+ * module system
+ */
+
+#define RT_MODULE_FLAG_WITHENTRY 0x00 /* with entry point */
+#define RT_MODULE_FLAG_WITHOUTENTRY 0x01 /* without entry point */
+
+struct rt_module
+{
+ /* inherit from object */
+ struct rt_object parent;
+
+ rt_uint8_t* module_space; /* module memory space */
+
+ void* module_entry; /* entry address of module's thread */
+ rt_thread_t module_thread; /* stack size of module's thread */
+ rt_uint32_t stack_size; /* priority of module's thread */
+ rt_uint32_t thread_priority;
+
+ /* module memory allocator */
+ void* mem_list; /* module's free memory list */
+ rt_list_t page_list; /* module's using page list */
+ rt_mp_t mpool;
+
+ /* module symbol table */
+ rt_uint32_t nsym;
+ struct rt_module_symtab *symtab;
+
+ /* reference count */
+ rt_uint32_t nref;
+
+ /* object in this module, module object is the last basic object type */
+ struct rt_object_information module_object[RT_Object_Class_Unknown];
+};
+typedef struct rt_module* rt_module_t;
+#endif
+
/*@}*/
#endif