|
@@ -2,7 +2,7 @@
|
|
|
static inline int a_ll(volatile int *p)
|
|
|
{
|
|
|
int v;
|
|
|
- __asm__ __volatile__ ("ldaxr %0, %1" : "=r"(v) : "Q"(*p));
|
|
|
+ __asm__ __volatile__ ("ldaxr %w0,%1" : "=r"(v) : "Q"(*p));
|
|
|
return v;
|
|
|
}
|
|
|
|
|
@@ -10,7 +10,7 @@ static inline int a_ll(volatile int *p)
|
|
|
static inline int a_sc(volatile int *p, int v)
|
|
|
{
|
|
|
int r;
|
|
|
- __asm__ __volatile__ ("stlxr %w0,%1,%2" : "=&r"(r) : "r"(v), "Q"(*p) : "memory");
|
|
|
+ __asm__ __volatile__ ("stlxr %w0,%w1,%2" : "=&r"(r) : "r"(v), "Q"(*p) : "memory");
|
|
|
return !r;
|
|
|
}
|
|
|
|