diff options
author | kato <kato@FreeBSD.org> | 2000-01-29 04:42:49 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2000-01-29 04:42:49 +0000 |
commit | 9af864f09a4c885de02492adc44cc74b37652846 (patch) | |
tree | b86ce098e58913bb71d25a92b013df8d049a4368 /sys | |
parent | 0fbb0164876703f754f2695452e325f686d83996 (diff) | |
download | FreeBSD-src-9af864f09a4c885de02492adc44cc74b37652846.zip FreeBSD-src-9af864f09a4c885de02492adc44cc74b37652846.tar.gz |
Synced with sys/i386/isa/wd.c rev 1.218.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/wd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index 49dfe3c..83aa52a 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -1985,6 +1985,14 @@ failed: du->dk_dd.d_ncylinders = du->dk_dd.d_secperunit / du->dk_dd.d_secpercyl; } + if (du->dk_dd.d_ncylinders > 0x10000 && !(du->cfg_flags & WDOPT_LBA)) { + du->dk_dd.d_ncylinders = 0x10000; + du->dk_dd.d_secperunit = du->dk_dd.d_secpercyl * + du->dk_dd.d_ncylinders; + printf( + "wd%d: cannot handle %d total sectors; truncating to %lu\n", + du->dk_lunit, wp->wdp_lbasize, du->dk_dd.d_secperunit); + } #if 0 du->dk_dd.d_partitions[RAW_PART].p_size = du->dk_dd.d_secperunit; /* dubious ... */ |