]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeSupport.c
CorebootPayloadPkg: Fix various typos
[mirror_edk2.git] / CorebootPayloadPkg / Library / PciHostBridgeLib / PciHostBridgeSupport.c
index 6d94ff72c95695cf9c0bee7b57738baec5b7b32e..d06db1e12ec7e63f6d5bf0e26689a2e7c3993f5f 100644 (file)
@@ -146,7 +146,7 @@ PcatPciRootBridgeBarExisted (
 }\r
 \r
 /**\r
-  Parse PCI bar and collect the assigned PCI resouce information.\r
+  Parse PCI bar and collect the assigned PCI resource information.\r
 \r
   @param[in]  Command          Supported attributes.\r
 \r
@@ -328,8 +328,13 @@ ScanForRootBridges (
   for (PrimaryBus = 0; PrimaryBus <= PCI_MAX_BUS; PrimaryBus = SubBus + 1) {\r
     SubBus = PrimaryBus;\r
     Attributes = 0;\r
+\r
+    ZeroMem (&Io, sizeof (Io));\r
+    ZeroMem (&Mem, sizeof (Mem));\r
+    ZeroMem (&MemAbove4G, sizeof (MemAbove4G));\r
+    ZeroMem (&PMem, sizeof (PMem));\r
+    ZeroMem (&PMemAbove4G, sizeof (PMemAbove4G));\r
     Io.Base = Mem.Base = MemAbove4G.Base = PMem.Base = PMemAbove4G.Base = MAX_UINT64;\r
-    Io.Limit = Mem.Limit = MemAbove4G.Limit = PMem.Limit = PMemAbove4G.Limit = 0;\r
     //\r
     // Scan all the PCI devices on the primary bus of the PCI root bridge\r
     //\r
@@ -392,7 +397,7 @@ ScanForRootBridges (
           //\r
           if (Pci.Bridge.SubordinateBus > SubBus) {\r
             //\r
-            // If the suborinate bus number of the PCI-PCI bridge is greater\r
+            // If the subordinate bus number of the PCI-PCI bridge is greater\r
             // than the PCI root bridge's current subordinate bus number,\r
             // then update the PCI root bridge's subordinate bus number\r
             //\r
@@ -531,7 +536,7 @@ ScanForRootBridges (
 \r
         //\r
         // See if the PCI Device is a PCI - ISA or PCI - EISA\r
-        // or ISA_POSITIVIE_DECODE Bridge device\r
+        // or ISA_POSITIVE_DECODE Bridge device\r
         //\r
         if (Pci.Hdr.ClassCode[2] == PCI_CLASS_BRIDGE) {\r
           if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA ||\r