PCI3.0 allows us to report a "runtime size" which can be smaller than the actual ROM size. On systems that support PMM our runtime size will be small (~2.5kB), which helps to conserve the limited option ROM space. However, there is no guarantee that the PMM allocation will succeed, and so we need to report the worst-case runtime size in the PCI header. Move the "shrunk ROM size" field from the PCI header to a new "iPXE ROM header", allowing it to be accessed by ROM-manipulation utilities such as disrom.pl. Reported-by: Anton D. Kachalov <mouse@yandex-team.ru> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
63 |
|
63 |
|
64 |
|
64 |
|
65 |
|
65 |
|
|
66 |
|
|
|
67 |
|
|
66 |
|
68 |
|
67 |
|
69 |
|
68 |
|
70 |
|
|
|
||
78 |
|
80 |
|
79 |
|
81 |
|
80 |
|
82 |
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
83 |
|
85 |
|
84 |
|
86 |
|
85 |
|
|
|
||
106 |
|
105 |
|
107 |
|
106 |
|
108 |
|
107 |
|
109 |
|
|
|
|
108 |
|
|
110 |
|
109 |
|
111 |
|
110 |
|
112 |
|
111 |
|
|
|
||
175 |
|
174 |
|
176 |
|
175 |
|
177 |
|
176 |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
178 |
|
196 |
|
179 |
|
197 |
|
180 |
|
198 |
|
|
|
||
354 |
|
372 |
|
355 |
|
373 |
|
356 |
|
374 |
|
357 |
|
|
|
|
375 |
|
|
358 |
|
376 |
|
359 |
|
377 |
|
360 |
|
378 |
|
|
|
||
172 |
|
172 |
|
173 |
|
173 |
|
174 |
|
174 |
|
|
175 |
|
|
175 |
|
176 |
|
176 |
|
177 |
|
177 |
|
|
|
|
178 |
|
|
178 |
|
179 |
|
179 |
|
180 |
|
180 |
|
181 |
|
|
|
||
232 |
|
233 |
|
233 |
|
234 |
|
234 |
|
235 |
|
|
236 |
|
|
235 |
|
237 |
|
236 |
|
238 |
|
237 |
|
239 |
|
|
|
||
390 |
|
392 |
|
391 |
|
393 |
|
392 |
|
394 |
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
|
406 |
|
|
|
407 |
|
|
|
408 |
|
|
|
409 |
|
|
|
410 |
|
|
|
411 |
|
|
|
412 |
|
|
|
413 |
|
|
393 |
|
414 |
|
394 |
|
415 |
|
395 |
|
416 |
|
|
|
||
566 |
|
587 |
|
567 |
|
588 |
|
568 |
|
589 |
|
|
590 |
|
|
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
|
595 |
|
|
|
596 |
|
|
|
597 |
|
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
|
601 |
|
|
|
602 |
|
|
|
603 |
|
|
|
604 |
|
|
|
605 |
|
|
|
606 |
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
|
|
|
610 |
|
|
|
611 |
|
|
|
612 |
|
|
|
613 |
|
|
|
614 |
|
|
|
615 |
|
|
|
616 |
|
|
|
617 |
|
|
|
618 |
|
|
|
619 |
|
|
|
620 |
|
|
|
621 |
|
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
|
626 |
|
|
|
627 |
|
|
|
628 |
|
|
|
629 |
|
|
|
630 |
|
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
|
|
|
636 |
|
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
569 |
|
644 |
|
|
|
||
85 |
|
85 |
|
86 |
|
86 |
|
87 |
|
87 |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
88 |
|
99 |
|
|
|
||
32 |
|
32 |
|
33 |
|
33 |
|
34 |
|
34 |
|
|
35 |
|
|
35 |
|
36 |
|
36 |
|
37 |
|
37 |
|
38 |
|