diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-08-12 00:53:02 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-08-12 00:53:02 +0000 |
commit | c8f56afb629104ce460c52fb523995a57b9938be (patch) | |
tree | e0c7da069551258f35ea7aa4cc567c9257cf8451 /lib/libc | |
parent | 6f7ebd36bf8479d18d03719ac960bb1ddc268d2c (diff) | |
download | FreeBSD-src-c8f56afb629104ce460c52fb523995a57b9938be.zip FreeBSD-src-c8f56afb629104ce460c52fb523995a57b9938be.tar.gz |
Apply my small patch to make detection of ATAPI CD-ROMs happen a
little more reliably. So far I've received a couple of positive
responses and no objections to these changes.
There are two one-line changes:
- In wdprobe(), when testing the error status of drives, don't
unconditionally decide that there is no controller present if we
read back a value of 0x81 (drive 0 okay, drive 1 failed) twice
in a row. This may be caused by having an ATAPI CD-ROM jumpered
as a master on the controller with no slave.
- In wdgetctlr(), when checking for a status of WDCS_READY, check the
value twice. The first time may be bogus. This stops a phantom wd2
device from being detected when an ATAPI CD-ROM is attached to the
secondary controller alone as a slave. (This can cause installation to
fail when sysinstall attempts to open the phantom device and wedges the
system as a result. This has bitten me a couple of times on some
Gateway 2000 machines.)
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions