Option::ROM currently uses the initialisation length field (single byte at offset 0x02) to determine the length of a ROM image within a multi-image ROM file. For PCI ROM images with a code type other than 0, the initialisation length field may not be present. Fix by using the PCI header's image length field instead. Note that this does not prevent us from correctly handling ISA ROMs, since ISA ROMs do not support multiple images within a single ROM BAR anyway. Inspired-by: Swift Geek <swiftgeek@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
266 |
|
266 |
|
267 |
|
267 |
|
268 |
|
268 |
|
269 |
|
|
|
270 |
|
269 |
|
271 |
|
|
|
272 |
|
|
|
|
270 |
|
|
273 |
|
271 |
|
|
272 |
|
|
274 |
|
273 |
|
275 |
|
274 |
|
276 |
|
275 |
|