]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[romprefix] Report failure cause when unable to open payload
authorMichael Brown <mcb30@ipxe.org>
Tue, 30 Apr 2013 13:31:39 +0000 (14:31 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 30 Apr 2013 13:56:19 +0000 (14:56 +0100)
commitc6375a85be0573c12fc89d55009d2905521d78c4
tree3f0d4c61e08ebec8ba57540195eddb1c898694da
parent592755eccf51c87ca727c2044eee7ffc3266e290
[romprefix] Report failure cause when unable to open payload

Report the cause of the failure when we are unable to open the .mrom
payload.  There are two possible failure cases:

 - Unable to find a suitable memory BAR to borrow (e.g. if the NIC
   doesn't have a memory BAR that is at least as large as the
   expansion ROM BAR, or if the memory BAR has been assigned a 64-bit
   address which won't fit into the 32-bit expansion ROM BAR).  This
   will be reported as "BABABABA".

 - Unable to find correct ROM image within the BAR.  This will be
   reported as the address (within the borrowed BAR) at which we first
   fail to find a valid 55AA signature.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/mromprefix.S