Author: dim
Date: Mon Aug 13 21:04:01 2012
New Revision: 239243
URL: http://svn.freebsd.org/changeset/base/239243
Log:
After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probing
in sys/boot/i386/libi386/biosdisk.c. Otherwise, when DISK_DEBUG is
enabled, the DEBUG() macros will clobber those fields, and cause the
probing to always fail mysteriously when debugging is enabled.
Modified:
head/sys/boot/i386/libi386/biosdisk.c
Modified: head/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- head/sys/boot/i386/libi386/biosdisk.c Mon Aug 13 19:14:45 2012
(r239242)
+++ head/sys/boot/i386/libi386/biosdisk.c Mon Aug 13 21:04:01 2012
(r239243)
@@ -215,6 +215,8 @@ bd_int13probe(struct bdinfo *bd)
bd->bd_hds, bd->bd_sec);
/* Determine if we can use EDD with this device. */
+ v86.ctl = V86_FLAGS;
+ v86.addr = 0x13;
v86.eax = 0x4100;
v86.edx = bd->bd_unit;
v86.ebx = 0x55aa;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"