]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[romprefix] Report a pessimistic runtime size estimate
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Jul 2012 16:41:38 +0000 (17:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jul 2012 16:57:40 +0000 (17:57 +0100)
commit5de45cd3da2308a6db37fb7c0822c9fdadf00d96
treee33ac06ab9d117ea86644d2362660e84b7727c2f
parentee3636370d901bca306cf85241491f23e0f5034a
[romprefix] Report a pessimistic runtime size estimate

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>
src/arch/i386/prefix/romprefix.S
src/util/Option/ROM.pm
src/util/disrom.pl
src/util/fixrom.pl