diff options
author | peter <peter@FreeBSD.org> | 2003-10-23 05:52:52 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-23 05:52:52 +0000 |
commit | 951b71c1b728e511147544d92155013840822f9b (patch) | |
tree | 6690f6d104f84ff136613862933c28d30f670bee /sys/dev/fdc | |
parent | 75189bfe05f8f6290301e44342e8d5bcd9f1e575 (diff) | |
download | FreeBSD-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/dev/fdc')
-rw-r--r-- | sys/dev/fdc/fdc.c | 4 |
1 files changed, 2 insertions, 2 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); |