mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 08:14:06 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149686
|
@ -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 a new issue