FreeBSD Bugzilla – Attachment 36959 Details for
Bug 59026
re-add Floppy-Dtectection-Support for FreeBSD/alpha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
src::sys::isa::fd.c
src::sys::isa::fd.c (text/plain), 966 bytes, created by
Oliver Lehmann
on 2003-11-06 23:20:08 UTC
(
hide
)
Description:
src::sys::isa::fd.c
Filename:
MIME Type:
Creator:
Oliver Lehmann
Created:
2003-11-06 23:20:08 UTC
Size:
966 bytes
patch
obsolete
>--- src/sys/isa/fd.c.orig Thu Oct 23 07:52:52 2003 >+++ src/sys/isa/fd.c Tue Nov 4 20:05:13 2003 >@@ -1204,6 +1204,8 @@ > fd->flags = FD_UA; /* make sure fdautoselect() will be called */ > > fd->type = FD_DTYPE(flags); >+ >+ if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) { > /* > * XXX I think using __i386__ is wrong here since we actually want to probe > * for the machine type, not the CPU type (so non-PC arch's like the PC98 will >@@ -1211,7 +1213,6 @@ > * == i386 breaks the test on FreeBSD/Alpha. > */ > #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) { > if ((fdc->flags & FDC_ISPCMCIA)) >@@ -1229,8 +1230,11 @@ > } > if (fd->type == FDT_288M_1) > fd->type = FDT_288M; >- } >+#else >+ fd->type = FDT_144M; > #endif /* __i386__ || __amd64__ */ >+ } >+ > /* is there a unit? */ > if (fd->type == FDT_NONE) > return (ENXIO);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 59026
: 36959