Thread (35 messages) 35 messages, 8 authors, 2003-10-02

Re: Problem of concurrency in arch/ppc/8260_io/uart.c

flat view

From: Tom Rini <hidden>
Date: 2003-09-29 15:33:26

On Sat, Sep 27, 2003 at 03:43:51PM +0200, Joakim Tjernlund wrote:
quoted
quoted
If that freaks out the CPM, put one
byte of zero into the buffer and give it a count of 1.  Then you just have
to hold the lock across the update of the BD ptr, just like everywhere else.
That will work, but wont the zero show up on the console? hmm, since
the zero count will be very unlikely case anyhow,  I can live with that.
OK, this patch does the above. I left my test function(err_copy_from_user)
to simulate bad copy_from_user() copies every now and then. Just remove
it and change the call in rs_8xx_write when you have tested it.
Works great for me, not even jove(emacs like editor) will break it.
KGDB still works for me.  Dan, happy with this?

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help