Treat resources that are 0xfffff.... as being 'unassigned'.
Reviewed by: jhb Tested by: Mark Kirkwood MFC After: 3 days
This commit is contained in:
parent
bdcb67f435
commit
b81b5c06b4
@ -826,9 +826,14 @@ pci_add_map(device_t pcib, device_t bus, device_t dev,
|
||||
* If base is 0, then we have problems. It is best to ignore
|
||||
* such entries for the moment. These will be allocated later if
|
||||
* the driver specifically requests them.
|
||||
*
|
||||
* Similarlly treat maps whose values is the same as the test value
|
||||
* read back. These maps have had all f's written to them by the
|
||||
* BIOS in an attempt to disable the resources.
|
||||
*/
|
||||
if (base == 0)
|
||||
if (base == 0 || map == testval)
|
||||
return 1;
|
||||
|
||||
/*
|
||||
* This code theoretically does the right thing, but has
|
||||
* undesirable side effects in some cases where peripherals
|
||||
|
Loading…
Reference in New Issue
Block a user