- Fix a FreeLdr PCI detection bug introduced in revision 10742 5 years ago when PCI...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 2 Nov 2009 21:13:45 +0000 (21:13 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Mon, 2 Nov 2009 21:13:45 +0000 (21:13 +0000)
svn path=/trunk/; revision=43924

reactos/boot/freeldr/freeldr/arch/i386/hwpci.c
reactos/hal/halx86/generic/bus/pcibus.c

index a56e12e..611bb10 100644 (file)
@@ -132,7 +132,7 @@ FindPciBios(PPCI_REGISTRY_INFO BusData)
       BusData->NoBuses = RegsOut.b.cl + 1;
       BusData->MajorRevision = RegsOut.b.bh;
       BusData->MinorRevision = RegsOut.b.bl;
-      BusData->HardwareMechanism = RegsOut.b.cl;
+      BusData->HardwareMechanism = RegsOut.b.al;
 
       return TRUE;
     }
index 23fa09d..3282803 100644 (file)
@@ -938,11 +938,7 @@ HalpInitializePciStubs(VOID)
     ULONG VendorId = 0;
 
     /* Query registry information */
-#ifdef WORKED_FOR_ME
     PciRegistryInfo = HalpQueryPciRegistryInfo();
-#else
-    PciRegistryInfo = NULL;
-#endif
     if (!PciRegistryInfo)
     {
         /* Assume type 1 */