svn commit: r237353 - user/ae/bootcode/sys/boot/i386/libi386
Andrey V. Elsukov
ae at FreeBSD.org
Thu Jun 21 04:28:58 UTC 2012
Author: ae
Date: Thu Jun 21 04:28:57 2012
New Revision: 237353
URL: http://svn.freebsd.org/changeset/base/237353
Log:
Fix copy/paste bug. Also od_flags now in the bdinfo structure, fix this.
Modified:
user/ae/bootcode/sys/boot/i386/libi386/biosdisk.c
Modified: user/ae/bootcode/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- user/ae/bootcode/sys/boot/i386/libi386/biosdisk.c Thu Jun 21 04:02:07 2012 (r237352)
+++ user/ae/bootcode/sys/boot/i386/libi386/biosdisk.c Thu Jun 21 04:28:57 2012 (r237353)
@@ -222,7 +222,7 @@ bd_int13probe(struct bdinfo *bd)
if (V86_CY(v86.efl) || /* carry set */
(v86.ecx & 0x3f) == 0 || /* absurd sector number */
- (v86.edx & 0xff) <= (unsigned)(od->od_unit & 0x7f)) /* unit # bad */
+ (v86.edx & 0xff) <= (unsigned)(bd->bd_unit & 0x7f)) /* unit # bad */
return (0); /* skip device */
/* Convert max cyl # -> # of cylinders */
@@ -723,7 +723,7 @@ bd_io(struct open_disk *od, daddr_t dblk
v86int();
}
- if (od->od_flags & BD_MODEEDD1)
+ if (BD(od).bd_flags & BD_MODEEDD1)
result = bd_edd_io(od, dblk, x, xp, write);
else
result = bd_chs_io(od, dblk, x, xp, write);
More information about the svn-src-user
mailing list