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.


argument order fix
Jack Lange [Thu, 18 Nov 2010 19:32:18 +0000 (13:32 -0600)]
palacios/src/devices/filedisk.c
palacios/src/palacios/vmm_file.c

index 44ec18c..f4e6318 100644 (file)
@@ -41,7 +41,7 @@ static int write_all(v3_file_t fd, char * buf, int offset, int length) {
     
     PrintDebug("Writing %d bytes\n", length - bytes_written);
     while (bytes_written < length) {
-       int tmp_bytes = v3_file_write(fd, buf + bytes_written, offset + bytes_written, length - bytes_written);
+       int tmp_bytes = v3_file_write(fd, buf + bytes_written, length - bytes_written, offset + bytes_written);
        PrintDebug("Wrote %d bytes\n", tmp_bytes);
        
        if (tmp_bytes <= 0 ) {
@@ -61,7 +61,7 @@ static int read_all(v3_file_t fd, char * buf, int offset, int length) {
     
     PrintDebug("Reading %d bytes\n", length - bytes_read);
     while (bytes_read < length) {
-       int tmp_bytes = v3_file_read(fd, buf + bytes_read, offset + bytes_read, length - bytes_read);
+       int tmp_bytes = v3_file_read(fd, buf + bytes_read, length - bytes_read, offset + bytes_read);
        PrintDebug("Read %d bytes\n", tmp_bytes);
        
        if (tmp_bytes <= 0) {
index e0e9a54..6e69ce1 100644 (file)
@@ -35,9 +35,9 @@ void V3_Init_File(struct v3_file_hooks * hooks) {
 
 
 v3_file_t v3_file_open(struct v3_vm_info * vm, char * path, uint8_t mode) {
+    void * priv_data = NULL;
     V3_ASSERT(file_hooks);
     V3_ASSERT(file_hooks->open);
-    void * priv_data = NULL;
     
     if (vm) {
        priv_data = vm->host_priv_data;