diff options
author | kato <kato@FreeBSD.org> | 1997-01-04 10:57:45 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-01-04 10:57:45 +0000 |
commit | 174d10d4f6ac49e836f73b023c0d9d544e6ab5bc (patch) | |
tree | 0c333e3ebcd6d11630f435b088b8ea25883baba3 | |
parent | 14fe89930fe64db4d559faa94eb64513f93f286b (diff) | |
download | FreeBSD-src-174d10d4f6ac49e836f73b023c0d9d544e6ab5bc.zip FreeBSD-src-174d10d4f6ac49e836f73b023c0d9d544e6ab5bc.tar.gz |
Delete collapse code to avoid overflow of the number of cylinders.
This should be in 2.2 after src/sys/i386/isa/wdreg.h revsion 1.15
(short -> u_short change) is merged.
-rw-r--r-- | sys/pc98/pc98/wd.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index d5acdbb..6bb726f 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.11 1996/12/01 16:34:30 bde Exp $ + * $Id: wd.c,v 1.12 1996/12/04 04:21:16 asami Exp $ */ /* TODO: @@ -482,25 +482,11 @@ wdattach(struct isa_device *dvp) printf("wd%d: size unknown, using %s values\n", lunit, du->dk_dd.d_secperunit > 17 ? "BIOS" : "fake"); -#ifdef PC98 /* XXX */ - if (du->dk_dd.d_secperunit > 8 * 1024 * 1024) { - du->dk_dd.d_ncylinders = - bootinfo.bi_bios_geom[du->dk_unit] >> 16; - du->dk_dd.d_secperunit = - du->dk_dd.d_ncylinders - * du->dk_dd.d_ntracks - * du->dk_dd.d_nsectors; - } -#endif printf( "wd%d: %luMB (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n", lunit, du->dk_dd.d_secperunit -#ifdef PC98 - / ( 1024 * 1024 / du->dk_dd.d_secsize) , -#else * du->dk_dd.d_secsize / (1024 * 1024), -#endif du->dk_dd.d_secperunit, du->dk_dd.d_ncylinders, du->dk_dd.d_ntracks, |