@SlickTeam: What can I do to let SE recognize also this notation
__asm__ __volatile__ ( );
as embedded assembler (along with 'asm volatile') ?
C-PP setup didn't help.
One more issue:
Color coding stops/breaks if quoting is divided into parts due to a macro (here: PPC405_ERR77(0,%3)):
// Erratum #77 on the 405 means we need a sync or dcbt before every stwcx.
#define PPC405_ERR77(ra,rb) "dcbt " #ra "," #rb ";"
static __inline__ void atomic_add(int a, atomic_t *v)
{
int t;
__asm__ __volatile__(
"1: lwarx %0,0,%3 # atomic_add\n\
add %0,%2,%0\n"
PPC405_ERR77(0,%3)
" stwcx. %0,0,%3 \n\
bne- 1b"
: "=&r" (t), "+m" (v->counter)
: "r" (a), "r" (&v->counter)
: "cc");
}
Any possibilty to solve that ?
HS2