From deb8a310abcb8ef8b6afef74a1fa058777740b3f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 16 Jul 2010 00:42:43 +0800 Subject: [PATCH] Fiddling with usermode PCI dump --- Kernel/drv/pci.c | 2 +- Modules/Filesystems/InitRD/files.lst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index 1812a54b..e09d61dc 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -177,7 +177,7 @@ int PCI_ScanBus(int BusID) // Maybe bit 23 must be set for the device to be valid? // - Actually, maybe 23 means that there are sub-functions if(fcn == 0) { - if( !(devInfo.ConfigCache[3] & 0x800000) ) + if( !(devInfo.ConfigCache[3] & 0x00800000) ) break; } } diff --git a/Modules/Filesystems/InitRD/files.lst b/Modules/Filesystems/InitRD/files.lst index 6c917911..7ac60834 100644 --- a/Modules/Filesystems/InitRD/files.lst +++ b/Modules/Filesystems/InitRD/files.lst @@ -7,6 +7,7 @@ Dir "Bin" { File "ls" "../../../Usermode/Applications/ls" File "cat" "../../../Usermode/Applications/cat" File "mount" "../../../Usermode/Applications/mount" + File "pcidump" "../../../Usermode/Applications/pcidump" } Dir "Libs" { File "ld-acess.so" "../../../Usermode/Libraries/ld-acess.so" -- 2.20.1