mromprefix.S currently uses the initialisation length field (single byte at offset 0x02) to determine the length of a ROM image within a multi-image ROM BAR. 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. Inspired-by: Swift Geek <swiftgeek@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
32 |
|
|
33 |
|
|
|
34 |
|
|
33 |
|
35 |
|
34 |
|
36 |
|
35 |
|
37 |
|
|
|
||
158 |
|
160 |
|
159 |
|
161 |
|
160 |
|
162 |
|
161 |
|
|
|
|
163 |
|
|
162 |
|
164 |
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
168 |
|
171 |
|
169 |
|
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
170 |
|
176 |
|
171 |
|
177 |
|
172 |
|
178 |
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
173 |
|
183 |
|
174 |
|
184 |
|
175 |
|
185 |
|