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:
parent
9f660f20bb
commit
8c8d33fe9f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user