Port-dreamcast archive

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

Re: mkbd(4) delay fix



2008/10/19 Matt Fleming <mjf%netbsd.org@localhost>:
> Hi,
>
> attached is a patch that allows my dreamcast keyboard to work


Hmm.. I've inlined the patch here (note: it _will_ be whitespace
damaged) to ease review.

Matt


Index: sys/arch/dreamcast/dev/maple/mkbd.c
===================================================================
RCS file: /cvsroot/src/sys/arch/dreamcast/dev/maple/mkbd.c,v
retrieving revision 1.25
diff -u -r1.25 mkbd.c
--- sys/arch/dreamcast/dev/maple/mkbd.c 17 Oct 2007 19:54:10 -0000      1.25
+++ sys/arch/dreamcast/dev/maple/mkbd.c 19 Oct 2008 13:49:12 -0000
@@ -308,8 +308,7 @@
        while (polledkey == -1) {
                if (mkbd_console_softc != NULL &&
                    mkbd_console_softc->sc_parent != NULL) {
-                       int t;
-                       for (t = 0; t < 1000000; t++);
+                       delay(30);
                        maple_run_polling(mkbd_console_softc->sc_parent);
                }
        }


Home | Main Index | Thread Index | Old Index