[lkml]   [2006]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Document Linux's memory barriers [try #4]
    Sergei Organov <> wrote:

    > > +In addition, accesses to "volatile" memory locations and volatile asm
    > > +statements act as implicit compiler barriers.
    > This last statement seems to contradict with what GCC manual says about
    > volatile asm statements:

    Perhaps I should say "compiler memory barrier", since it doesn't prevent
    instructions from being moved, but rather merely affects the ordering of
    memory accesses and volatile instructions.

    Hmmm... Is atomic_read() a compiler memory barrier? It isn't a CPU memory
    barrier, but it does touch explicitly volatile memory.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-03-14 21:37    [W:0.020 / U:0.632 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site