Richard wrote:
> volatile __asm__("":::"memory")
>
> is a memory barrier and a barrier for other volatile instructions.AFAIK asm without output arguments is implicitly marked as volatile. So it may not be needed in barrier() at all.
-Y
Richard wrote:
> volatile __asm__("":::"memory")
>
> is a memory barrier and a barrier for other volatile instructions.AFAIK asm without output arguments is implicitly marked as volatile. So it may not be needed in barrier() at all.
-Y