From: Kevin O'Connor Date: Sat, 16 Feb 2013 03:46:09 +0000 (-0500) Subject: Warn on unaligned PCI ROM structure in option roms. X-Git-Tag: rel-1.7.3~93 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=97dce0f9ce3b1a215c0f2e186fd35d0de7be5528;p=seabios.git Warn on unaligned PCI ROM structure in option roms. Signed-off-by: Kevin O'Connor --- diff --git a/src/optionroms.c b/src/optionroms.c index 971b9d6..03c5de0 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -109,6 +109,9 @@ get_pci_rom(struct rom_header *rom) struct pci_data *pd = (void*)((u32)rom + rom->pcioffset); if (pd->signature != PCI_ROM_SIGNATURE) return NULL; + if (rom->pcioffset & 3) + dprintf(1, "WARNING! Found unaligned PCI rom (vd=%04x:%04x)\n" + , pd->vendor, pd->device); return pd; }