Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5efe92c68045817b97927b748f369d407c1d89ab
Commit:     5efe92c68045817b97927b748f369d407c1d89ab
Parent:     2b79aac9038ee52fd8d89216b1a3ec9bd8285fac
Author:     David Howells <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 19 18:58:54 2008 +0000
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 15:51:36 2008 -0800

    MN10300: Introduce barriers to replace removed volatiles in gdbstub
    
    Introduce into the MN10300 gdbstub a couple of barrier() calls to replace 
the
    removed volatility of the input/output index variables for the Rx ring 
buffer.
    
    Signed-off-by: David Howells <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/mn10300/kernel/gdb-io-ttysm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mn10300/kernel/gdb-io-ttysm.c 
b/arch/mn10300/kernel/gdb-io-ttysm.c
index c545159..e94c25e 100644
--- a/arch/mn10300/kernel/gdb-io-ttysm.c
+++ b/arch/mn10300/kernel/gdb-io-ttysm.c
@@ -196,6 +196,7 @@ int gdbstub_io_rx_char(unsigned char *_ch, int nonblock)
 try_again:
        /* pull chars out of the buffer */
        ix = gdbstub_rx_outp;
+       barrier();
        if (ix == gdbstub_rx_inp) {
                if (nonblock)
                        return -EAGAIN;
@@ -207,6 +208,7 @@ try_again:
 
        ch = gdbstub_rx_buffer[ix++];
        st = gdbstub_rx_buffer[ix++];
+       barrier();
        gdbstub_rx_outp = ix & (PAGE_SIZE - 1);
 
        st &= SC01STR_RXF | SC01STR_RBF | SC01STR_FEF | SC01STR_PEF |
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to