Date: Mon, 13 Aug 2012 21:04:02 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239243 - head/sys/boot/i386/libi386 Message-ID: <201208132104.q7DL42dl093683@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208132104.q7DL42dl093683>