From: John Hodge Date: Sun, 23 Jun 2013 06:44:29 +0000 (+0800) Subject: Kernel/PCI - Fixed lack of shift in detecting special classes X-Git-Tag: rel0.15~418 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0881b119bf70ee1976f4db6e2795829b50129922;p=tpg%2Facess2.git Kernel/PCI - Fixed lack of shift in detecting special classes --- diff --git a/KernelLand/Kernel/drv/pci.c b/KernelLand/Kernel/drv/pci.c index dec81b8b..d3a1ebcf 100644 --- a/KernelLand/Kernel/drv/pci.c +++ b/KernelLand/Kernel/drv/pci.c @@ -215,7 +215,7 @@ int PCI_ScanBus(int BusID, int bFill) } giPCI_DeviceCount ++; - switch(devInfo.ConfigCache[3] & 0x007F0000) + switch( (devInfo.ConfigCache[3] >> 16) & 0x7F ) { case 0x00: // Normal device break;