]> xenbits.xensource.com Git - seabios.git/commitdiff
pci: don't reorder entries when moving to 64bit list
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Nov 2013 10:21:23 +0000 (11:21 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 29 Nov 2013 08:32:01 +0000 (09:32 +0100)
Otherwise the 64bit bars are not mapped in largest
first order, thereby messing up the alignment.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/pciinit.c

index 34279a4f3695835d418b40b402bb996a3c69947e..950b089dfd061129558c776eabd92c5e51e592a5 100644 (file)
@@ -582,6 +582,7 @@ static void pci_region_migrate_64bit_entries(struct pci_region *from,
         // Move from source list to destination list.
         hlist_del(&entry->node);
         hlist_add(&entry->node, last);
+        last = &entry->node.next;
     }
 }