svn commit: r211823 - head/sys/compat/x86bios

Jung-uk Kim jkim at FreeBSD.org
Wed Aug 25 20:52:40 UTC 2010


Author: jkim
Date: Wed Aug 25 20:52:40 2010
New Revision: 211823
URL: http://svn.freebsd.org/changeset/base/211823

Log:
  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

Modified:
  head/sys/compat/x86bios/x86bios.c

Modified: head/sys/compat/x86bios/x86bios.c
==============================================================================
--- head/sys/compat/x86bios/x86bios.c	Wed Aug 25 20:48:24 2010	(r211822)
+++ head/sys/compat/x86bios/x86bios.c	Wed Aug 25 20:52:40 2010	(r211823)
@@ -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);


More information about the svn-src-all mailing list