[romprefix] Avoid unaligned accesses within ROM headers
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Aug 2017 09:15:25 +0000 (10:15 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Aug 2017 09:15:25 +0000 (10:15 +0100)
commit75acb3c775544b6ecc4bfb1bba633717c8ec9394
tree131846d6fe794146f6bcd6fe656e2682b166c93f
parent8b104d881abbeb8f9592708a490c16916b0b1ecc
[romprefix] Avoid unaligned accesses within ROM headers

Ensure that all headers (PCI, UNDI, PnP, iPXE) are aligned to at least
four bytes, so that all accesses to header fields will be correctly
aligned even when reading directly from the expansion ROM BAR.

Reported-by: Peter von Konigsmark <peter@exablaze.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/prefix/mromprefix.S
src/arch/x86/prefix/romprefix.S