Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: anyone uses floppy on sun4m?



> i seem to have a floppy drive in my ss20 with supersparc.
> 
> i'll find some floppies and test it out... that may take a few days.

After a large set of try-and-errors, the following patch
seems to make floppy work on my SS20.
I'm not sure if comment about AUXIO4M_FTC is correct or not, though.

Index: sparc/auxreg.h
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/sparc/auxreg.h,v
retrieving revision 1.12
diff -u -r1.12 auxreg.h
--- sparc/auxreg.h      16 Nov 2005 03:00:23 -0000      1.12
+++ sparc/auxreg.h      20 Dec 2009 03:26:26 -0000
@@ -105,6 +105,9 @@
        if (CPU_ISSUN4M) {                                              \
                /* AUXIO4M_FTC bit is auto-clear */                     \
                *AUXIO4M_REG = auxio_regval | AUXIO4M_FTC;              \
+               /* XXX we need to clear it on hyperSPARC SS20 */        \
+               DELAY(10);                                              \
+               *AUXIO4M_REG = auxio_regval;                            \
        } else {                                                        \
                auxio_regval |= AUXIO4C_FTC;                            \
                *AUXIO4C_REG = auxio_regval;                            \

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index