2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-03-31 10:33:32 +00:00
Files
xNBA/src/util
Joshua Oreman b0b0b8f65c [modrom] Avoid clobbering near jump with checksum
A jump instruction starts at the third byte of an option ROM image, and
it is required that the bytes in the whole image add up to zero. To
achieve this, a checksum byte is usually placed after the jump. The jump
can be either a short jump (2 bytes, EB xx) or a near jump (3 bytes,
E9 xx xx). gPXE's romprefix.S uses a near jump, but modrom.pl assumed
a short jump, and clobbered the high byte of the offset. This caused
modrom-modified gPXE ROM images to crash the system during POST.

Fix by making modrom.pl place the checksum at byte 6, like makerom.pl does.

Signed-off-by: Marty Connor <mdc@etherboot.org>
2009-10-15 14:47:54 -04:00
..
2005-03-08 18:53:11 +00:00
2009-01-09 19:38:53 +00:00
2009-01-09 20:52:26 +00:00
2005-03-08 18:53:11 +00:00
2006-06-27 17:31:01 +00:00
2005-03-08 18:53:11 +00:00
2005-03-08 18:53:11 +00:00