The UEFI specification has an implicit and demonstrably incorrect requirement (in the Mem_IO() calling convention) that any UNDI network device has at most one memory BAR and one I/O BAR. Some UEFI platforms have been observed to report the existence of non-existent additional I/O BARs, causing iPXE to select the wrong BAR. This problem does not affect the SnpDxe driver, since that driver will always choose the lowest numbered existent BAR of each type. Adjust iPXE's behaviour to match that of SnpDxe, i.e. to always select the lowest numbered BAR(s). Debugged-by: Andreas Hammarskjöld <junior@2PintSoftware.com> Debugged-by: Adklei <adklei@realtek.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
202 |
|
202 |
|
203 |
|
203 |
|
204 |
|
204 |
|
205 |
|
|
|
|
205 |
|
|
206 |
|
206 |
|
207 |
|
207 |
|
208 |
|
208 |
|
|
|
||
230 |
|
230 |
|
231 |
|
231 |
|
232 |
|
232 |
|
233 |
|
|
|
|
233 |
|
|
234 |
|
234 |
|
235 |
|
235 |
|
236 |
|
236 |
|