diff options
author | Michael Brown | 2008-08-15 05:10:35 +0200 |
---|---|---|
committer | Michael Brown | 2008-08-15 05:10:35 +0200 |
commit | 23bca8f9d86da54859996acb07a0bc07daee4955 (patch) | |
tree | 3d77f9208d182df5eb73a384cb807276318ff471 /src/util/disrom.pl | |
parent | [settings] Avoid overwriting the start of .text in fetch_string_setting() (diff) | |
download | ipxe-23bca8f9d86da54859996acb07a0bc07daee4955.tar.gz ipxe-23bca8f9d86da54859996acb07a0bc07daee4955.tar.xz ipxe-23bca8f9d86da54859996acb07a0bc07daee4955.zip |
[util] Allow Option::ROM to understand and modify initialisation entry point
Add support for manipulating the jump instruction that forms the
option ROM initialisation entry point, so that mergerom.pl can treat
it just like other entry points.
Add support for merging the initialisation entry point (and IBM BOFM
table) to mergerom.pl; this is another slightly icky but unfortunately
necessary GPL vs. NDA workaround. When mergerom.pl replaces an entry
point in the original ROM, it now fills in the corresponding entry
point in the merged ROM with the original value; this allows (for
example) a merged initialisation entry point to do some processing and
then jump back to the original entry point.
Diffstat (limited to 'src/util/disrom.pl')
-rwxr-xr-x | src/util/disrom.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/disrom.pl b/src/util/disrom.pl index c472037a..80ac4af8 100755 --- a/src/util/disrom.pl +++ b/src/util/disrom.pl @@ -38,6 +38,7 @@ die "ROM image truncated (is $filelength, should be $romlength)\n" printf "ROM header:\n\n"; printf " Length:\t0x%02x (%d)\n", $rom->{length}, ( $rom->{length} * 512 ); printf " Checksum:\t0x%02x (0x%02x)\n", $rom->{checksum}, $rom->checksum; +printf " Init:\t\t0x%04x\n", $rom->{init}; printf " UNDI header:\t0x%04x\n", $rom->{undi_header}; printf " PCI header:\t0x%04x\n", $rom->{pci_header}; printf " PnP header:\t0x%04x\n", $rom->{pnp_header}; |