Re: Inline Assembly queries

2009-06-30 Thread Andrew Haley
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 >>> >>>

Re: [PATCH] powerpc: Fix 64 bits vDSO dwarf info for CR register

2007-10-17 Thread Andrew Haley
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_