diff options
author | Michael Brown | 2012-08-15 14:18:46 +0200 |
---|---|---|
committer | Michael Brown | 2012-08-15 14:19:16 +0200 |
commit | 69fa49428088ccefd438a0e87b1111a727a8b702 (patch) | |
tree | 510219cf7f55c8d38ae5283a12e59e2e6dac8d05 /src/util/disrom.pl | |
parent | [util] Allow for CALL NEAR in the option ROM initialisation entry point (diff) | |
download | ipxe-69fa49428088ccefd438a0e87b1111a727a8b702.tar.gz ipxe-69fa49428088ccefd438a0e87b1111a727a8b702.tar.xz ipxe-69fa49428088ccefd438a0e87b1111a727a8b702.zip |
[util] Display UNDI ROM header in disrom.pl
Requested-by: Daniel Wyatt <daniel.wyatt@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/disrom.pl')
-rwxr-xr-x | src/util/disrom.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/disrom.pl b/src/util/disrom.pl index 87138686..574957ac 100755 --- a/src/util/disrom.pl +++ b/src/util/disrom.pl @@ -85,6 +85,22 @@ do { printf "\n"; } + my $undi = $rom->undi_header(); + if ( $undi ) { + printf "UNDI header:\n\n"; + printf " %-16s %s\n", "Signature:", $undi->{signature}; + printf " %-16s 0x%02x (%s0x%02x)\n", "Checksum:", $undi->{checksum}, + ( ( $undi->checksum == 0 ) ? "" : "INCORRECT: " ), $undi->checksum; + printf " %-16s %d.%d.%d\n", "UNDI version:", $undi->{version_major}, + $undi->{version_minor}, $undi->{version_revision}; + printf " %-16s 0x%04x\n", "Loader entry:", $undi->{loader_entry}; + printf " %-16s 0x%04x\n", "Stack size:", $undi->{stack_size}; + printf " %-16s 0x%04x\n", "Data size:", $undi->{data_size}; + printf " %-16s 0x%04x\n", "Code size:", $undi->{code_size}; + printf " %-16s %s\n", "Bus type:", $undi->{bus_type}; + printf "\n"; + } + my $ipxe = $rom->ipxe_header(); if ( $ipxe ) { printf "iPXE header:\n\n"; |