Ok,

to get back a working and floppydrive detection on FreeBSD/alpha:

What's about the attached patch?
I moved in fd_probe() 
        if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
out of the
#if defined(__i386__) || defined(__amd64__)
block and created an #else section (like it was in RELENG_4) where the
fd->type is set to 144 by force.

Why not just re-create the #else block? Why moving the if statement out of
the #ifdef block? Doing it that way, it's still possible to set
hint.fd.0.flags for example to 3 (720KB Floppy), and only set the 1.44M
type as a fallback when flags is NULL (FDT_NONE) which means in that case,
hint.fd.0.flags isn't defined. (Because we don't query the "BIOS" as we do
it for x86 to get the info what kind of floppy is attached to fdc.)

 Greetings, Oliver

-- 
 Oliver Lehmann
        @home: [EMAIL PROTECTED]
      @office: [EMAIL PROTECTED]
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/

Attachment: src::sys::isa::fd.c
Description: Binary data

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to