kernel mailz wrote:
> Consider atomic_add and atomic_add_return in kernel code.
>
> On Tue, Jun 30, 2009 at 2:59 AM, Ian Lance Taylor wrote:
>> kernel mailz writes:
>>
>>> I tried a small example
>>>
>>> int *p = 0x1000;
>>> int a = *p;
>>> asm("sync":::"memory");
>>> a = *p;
>>>
>>> and
>>>
>>>
Jakub Jelinek writes:
> On Wed, Oct 17, 2007 at 02:26:50PM +1000, Benjamin Herrenschmidt wrote:
> > Unfortunately, a bug in gcc cause it to not quite work either, but that
> > is being fixed separately with something around the lines of:
> >
> > linux-unwind.h:
> >
> > fs->regs.reg[R_