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 new module encapsulation framework
Jack Lange [Wed, 5 May 2010 22:32:30 +0000 (17:32 -0500)]
symmods/capsule/Makefile [new file with mode: 0644]
symmods/capsule/binary.S [new file with mode: 0644]

diff --git a/symmods/capsule/Makefile b/symmods/capsule/Makefile
new file mode 100644 (file)
index 0000000..ae6acb7
--- /dev/null
@@ -0,0 +1,14 @@
+mod_name := test
+mod_dir := /home/jarusl
+mod_obj := bar.o
+mod_type := 1
+
+DEFS := -DMOD_NAME=$(mod_name) -DMOD_DIR=$(mod_dir) -DMOD_OBJ=$(mod_obj) -DMOD_TYPE=$(mod_type)
+
+
+
+
+module: FORCE
+       gcc $(DEFS) -c binary.S -o module.vo
+
+FORCE:
\ No newline at end of file
diff --git a/symmods/capsule/binary.S b/symmods/capsule/binary.S
new file mode 100644 (file)
index 0000000..2c62f50
--- /dev/null
@@ -0,0 +1,42 @@
+#;  -*- fundamental -*-
+
+/* 
+ * This file is part of the Palacios Virtual Machine Monitor developed
+ * by the V3VEE Project with funding from the United States National 
+ * Science Foundation and the Department of Energy.  
+ *
+ * The V3VEE Project is a joint project between Northwestern University
+ * and the University of New Mexico.  You can find out more at 
+ * http://www.v3vee.org
+ *
+ * Copyright (c) 2010, Jack Lange <jarusl@cs.northwestern.edu>
+ * Copyright (c) 2010, The V3VEE Project <http://www.v3vee.org> 
+ * All rights reserved.
+ *
+ * Author: Jack Lange <jarusl@cs.northwestern.edu>
+ *
+ * This is free software.  You are permitted to use,
+ * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
+ */
+
+.data
+
+#define TOSTR(str) #str
+#define MOD_PATH(dir,name) TOSTR(dir/name)
+#define MOD_NM(name) TOSTR(name)
+
+.globl mod_start
+mod_start:
+.incbin MOD_PATH(MOD_DIR, MOD_OBJ)
+mod_stop:
+
+mod_name:
+.ascii MOD_NM(MOD_NAME)
+
+
+.section "_v3_modules"
+.quad mod_name
+.quad mod_start
+.quad mod_stop
+.long MOD_TYPE
+