From 0881b119bf70ee1976f4db6e2795829b50129922 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 23 Jun 2013 14:44:29 +0800 Subject: [PATCH] Kernel/PCI - Fixed lack of shift in detecting special classes --- KernelLand/Kernel/drv/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1