]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/commitdiff
Fixed the offset for non-compact non-pci param mode
authorMike Line <m-line1@ti.com>
Thu, 28 Oct 2010 18:10:10 +0000 (14:10 -0400)
committerMike Line <m-line1@ti.com>
Thu, 28 Oct 2010 18:10:10 +0000 (14:10 -0400)
src/util/romparse/romparse.c

index 50b9f2d0eb9b2430044f69f6cb809754cd05bebd..87f7ee6d711d09c94618036babbf5d20b3a75f6e 100644 (file)
@@ -380,7 +380,7 @@ void createOutput (void)
   }
 
   /* Compact the i2c eeprom to use the minimum memory possible */
-  base    = DATA_BASE;
+  base    = PCI_PARAM_BASE;
   nTables = NUM_BOOT_PARAM_TABLES; 
 
   if ((compact != 0) && (pciSet == 0))  {
@@ -388,6 +388,9 @@ void createOutput (void)
     base    = nTables * 0x80;  /* The number of parameter tables * size of a parameter table */
   }
 
+  if (pciSet)
+    base = base + PCI_EEAI_PARAM_SIZE;
+
 
   for (i = 0; i < NUM_BOOT_PARAM_TABLES; i++)  {
     progFile[i].addressBytes = base;
@@ -425,10 +428,6 @@ void createOutput (void)
     for (i = 0; i < PCI_DATA_LEN_32bit; i++)  {
       fprintf (str, "0x%08x\n", pciFile.data[i]);
     }
-  }  else  {
-    for (i = 0; i < PCI_DATA_LEN_32bit; i++)  {
-      fprintf (str, "0x%08x\n", 0);
-    }
   }