Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added module directory tree and build configuration
[palacios.git] / palacios / include / palacios / vmm_symmod.h
index bc7079b..bf360d2 100644 (file)
@@ -59,6 +59,25 @@ int v3_init_symmod_vm(struct v3_vm_info * vm, v3_cfg_tree_t * cfg);
 struct v3_sym_module * v3_get_sym_module(struct v3_vm_info * vm, char * name);
 
 
+
+
+
+struct v3_module_hdr {
+    char * name;
+    void * start_addr;
+    void * end_addr;
+} __attribute__((packed));
+
+
+#define register_module(name, start, end)                      \
+    static char v3_module_name[] = name;                       \
+    static struct v3_module_hdr _v3_module                     \
+    __attribute__((__used__))                                  \
+       __attribute__((unused, __section__ ("_v3_modules"),     \
+                      aligned(sizeof(addr_t))))                \
+       = {v3_module_name, start, end};
+
+
 int V3_init_symmod();