summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-23 05:52:52 +0000
committerpeter <peter@FreeBSD.org>2003-10-23 05:52:52 +0000
commit951b71c1b728e511147544d92155013840822f9b (patch)
tree6690f6d104f84ff136613862933c28d30f670bee /sys
parent75189bfe05f8f6290301e44342e8d5bcd9f1e575 (diff)
downloadFreeBSD-src-951b71c1b728e511147544d92155013840822f9b.zip
FreeBSD-src-951b71c1b728e511147544d92155013840822f9b.tar.gz
Look at the equipment list for amd64 as well as i386 for autodetecting
floppy drives in the absence of hints.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdc/fdc.c4
-rw-r--r--sys/isa/fd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 0c0d59c..fe88b94 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1210,7 +1210,7 @@ fd_probe(device_t dev)
* fail the probe). However, for whatever reason, testing for _MACHINE_ARCH
* == i386 breaks the test on FreeBSD/Alpha.
*/
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
/* Look up what the BIOS thinks we have. */
if (fd->fdu == 0) {
@@ -1230,7 +1230,7 @@ fd_probe(device_t dev)
if (fd->type == FDT_288M_1)
fd->type = FDT_288M;
}
-#endif /* __i386__ */
+#endif /* __i386__ || __amd64__ */
/* is there a unit? */
if (fd->type == FDT_NONE)
return (ENXIO);
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 0c0d59c..fe88b94 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -1210,7 +1210,7 @@ fd_probe(device_t dev)
* fail the probe). However, for whatever reason, testing for _MACHINE_ARCH
* == i386 breaks the test on FreeBSD/Alpha.
*/
-#ifdef __i386__
+#if defined(__i386__) || defined(__amd64__)
if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
/* Look up what the BIOS thinks we have. */
if (fd->fdu == 0) {
@@ -1230,7 +1230,7 @@ fd_probe(device_t dev)
if (fd->type == FDT_288M_1)
fd->type = FDT_288M;
}
-#endif /* __i386__ */
+#endif /* __i386__ || __amd64__ */
/* is there a unit? */
if (fd->type == FDT_NONE)
return (ENXIO);
OpenPOWER on IntegriCloud