Kernel/PCI - Fixed lack of shift in detecting special classes
authorJohn Hodge <[email protected]>
Sun, 23 Jun 2013 06:44:29 +0000 (14:44 +0800)
committerJohn Hodge <[email protected]>
Sun, 23 Jun 2013 06:44:29 +0000 (14:44 +0800)
KernelLand/Kernel/drv/pci.c

index dec81b8..d3a1ebc 100644 (file)
@@ -215,7 +215,7 @@ int PCI_ScanBus(int BusID, int bFill)
                        }\r
                        giPCI_DeviceCount ++;\r
                        \r
-                       switch(devInfo.ConfigCache[3] & 0x007F0000)\r
+                       switch( (devInfo.ConfigCache[3] >> 16) & 0x7F )\r
                        {\r
                        case 0x00:      // Normal device\r
                                break;\r

UCC git Repository :: git.ucc.asn.au