From 30877e5d9469f732b0480797329aa2f0cf282319 Mon Sep 17 00:00:00 2001 From: aaron <aaron@6dbc8c32-bb84-406f-8558-d1cf31a0ab0c> Date: Mon, 23 Oct 2017 09:44:06 +0000 Subject: [PATCH] git-svn-id: https://spexeah.com:8443/svn/Asuro@220 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/driver/PCI.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/PCI.pas b/src/driver/PCI.pas index 807902d2..43e38235 100644 --- a/src/driver/PCI.pas +++ b/src/driver/PCI.pas @@ -244,8 +244,8 @@ var ii : uint16; begin //enumerate pci bus - for ii:=0 to 256 do begin - for i:=0 to 31 do begin + for ii:=0 to 32 do begin + for i:=0 to 256 do begin check_device(ii, i); end; end; @@ -277,7 +277,7 @@ begin if vendor_id = $FFFF then exit; isDeviceb := isDevice(bus, device, 0, 8); - if isDeviceb = 1 then begin + if isDeviceb >= 0 then begin devices[device_count] := read_device_config(bus, device, 0, 0); device_count := device_count + 1; check_device := true;