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.


fixed scan error
Jack Lange [Mon, 16 Mar 2009 15:55:04 +0000 (10:55 -0500)]
palacios/src/devices/pci.c

index 616992e..23be4f6 100644 (file)
@@ -297,12 +297,11 @@ static int data_port_read(ushort_t port, void * dst, uint_t length, struct vm_de
     pci_dev = get_device(&(pci_state->bus_list[0]), pci_state->addr_reg.dev_num);
     
     if (pci_dev == NULL) {
-       //*(uint32_t *)dst = 0xffffffff;
-
-       PrintError("Reading configuration space for non-present device (dev_num=%d)\n", 
-                  pci_state->addr_reg.dev_num); 
+       for (i = 0; i < length; i++) {
+           *((uint8_t *)dst + i) = 0xff;
+       }
 
-       return -1;
+       return length;
     }
 
     for (i = 0; i < length; i++) {