Date: Thu, 21 Jun 2012 04:28:58 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r237353 - user/ae/bootcode/sys/boot/i386/libi386 Message-ID: <201206210428.q5L4Swej088501@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206210428.q5L4Swej088501>