changeset 1828:f58d2945ab83

* src/pci.c (cyg_pci_configure_device): Fix bug which caused memory resources to be not allocated.
author asl
date Thu, 11 Nov 2004 09:14:21 +0000
parents f21d41fc8556
children 7858ca9e2cfe
files packages/io/pci/current/ChangeLog packages/io/pci/current/src/pci.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/pci/current/ChangeLog
+++ b/packages/io/pci/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-03  David Vrabel  <dvrabel@arcom.com>
+	 
+	 * src/pci.c (cyg_pci_configure_device): Fix bug which caused
+	 memory resources to be not allocated.
+	
 2004-10-13  David Brennan <eCos@brennanhome.com>
 
 	* src/pci.c: Added include of cyg/infra/diag.h to fix compiler
--- a/packages/io/pci/current/src/pci.c
+++ b/packages/io/pci/current/src/pci.c
@@ -674,7 +674,7 @@ cyg_pci_configure_device( cyg_pci_device
 
     if (dev_info->num_bars > 0) {
         for (bar = 0; bar < CYG_PCI_MAX_BAR; bar++) {
-            if (!dev_info->base_address[bar]) {
+            if (!dev_info->base_size[bar]) {
                 continue;
             }
 	    flags = dev_info->base_size[bar];