Check opcode for short jump as well. Some option ROMs do short jumps

(e.g., some NVIDIA video cards) and we were not able to do POST while
resuming because we only honored long jump.

MFC after:	3 days
This commit is contained in:
jkim 2010-08-25 20:52:40 +00:00
parent 9f660f20bb
commit 8c8d33fe9f

View File

@ -801,7 +801,8 @@ x86bios_get_orm(uint32_t offset)
/* Does the shadow ROM contain BIOS POST code for x86? */
p = x86bios_offset(offset);
if (p == NULL || p[0] != 0x55 || p[1] != 0xaa || p[3] != 0xe9)
if (p == NULL || p[0] != 0x55 || p[1] != 0xaa ||
(p[3] != 0xe9 && p[3] != 0xeb))
return (NULL);
return (p);