diff options
author | kato <kato@FreeBSD.org> | 1999-08-05 03:12:20 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-08-05 03:12:20 +0000 |
commit | 0a6997ccc925da4677f11e04afcf3a029b807dca (patch) | |
tree | 40b1d6ff4e3a4b0731b1f7ce4e82e8d97ca84f09 | |
parent | e38551e9fa10a47865944007898daa9060d7c1a3 (diff) | |
download | FreeBSD-src-0a6997ccc925da4677f11e04afcf3a029b807dca.zip FreeBSD-src-0a6997ccc925da4677f11e04afcf3a029b807dca.tar.gz |
Provides discontinuous unit number support to make external FDD
bootable on 1 FDD PC98 machines. (When an external FDD unit is
installed, unit numbers become discontinuous.)
Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp>
-rw-r--r-- | sys/boot/pc98/libpc98/biosdisk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c index 3fa04c3..4ab0fee 100644 --- a/sys/boot/pc98/libpc98/biosdisk.c +++ b/sys/boot/pc98/libpc98/biosdisk.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: biosdisk.c,v 1.2 1999/03/04 10:48:14 kato Exp $ + * $Id: biosdisk.c,v 1.3 1999/03/04 16:38:12 kato Exp $ */ /* @@ -174,7 +174,8 @@ bd_init(void) /* XXX add EDD probes */ if (!bd_int13probe(&bdinfo[nbdinfo])){ - if ((unit & 0xf0) == 0xa0 && (unit & 0x0f) < 6) + if (((unit & 0xf0) == 0x90 && (unit & 0x0f) < 4) || + ((unit & 0xf0) == 0xa0 && (unit & 0x0f) < 6)) continue; /* Target IDs are not contiguous. */ else break; |