Commit ae667f77 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Really fix compilation failure on MIPS.

I missed an additional colon in previous patch. Oops. to make that mistake
less likely in the future, add comments as placeholders for unused inputs
and outputs in inline assembly.
parent baf7b3a5
...@@ -158,7 +158,7 @@ tas(volatile slock_t *lock) ...@@ -158,7 +158,7 @@ tas(volatile slock_t *lock)
" xchgb %0,%1 \n" " xchgb %0,%1 \n"
"1: \n" "1: \n"
: "+q"(_res), "+m"(*lock) : "+q"(_res), "+m"(*lock)
: : /* no inputs */
: "memory", "cc"); : "memory", "cc");
return (int) _res; return (int) _res;
} }
...@@ -225,7 +225,7 @@ tas(volatile slock_t *lock) ...@@ -225,7 +225,7 @@ tas(volatile slock_t *lock)
" lock \n" " lock \n"
" xchgb %0,%1 \n" " xchgb %0,%1 \n"
: "+q"(_res), "+m"(*lock) : "+q"(_res), "+m"(*lock)
: : /* no inputs */
: "memory", "cc"); : "memory", "cc");
return (int) _res; return (int) _res;
} }
...@@ -519,7 +519,7 @@ tas(volatile slock_t *lock) ...@@ -519,7 +519,7 @@ tas(volatile slock_t *lock)
" tas %1 \n" " tas %1 \n"
" sne %0 \n" " sne %0 \n"
: "=d"(rv), "+m"(*lock) : "=d"(rv), "+m"(*lock)
: : /* no inputs */
: "memory", "cc"); : "memory", "cc");
return rv; return rv;
} }
...@@ -586,7 +586,7 @@ tas(volatile slock_t *lock) ...@@ -586,7 +586,7 @@ tas(volatile slock_t *lock)
" sync \n" " sync \n"
" .set pop " " .set pop "
: "=&r" (_res), "=&r" (_tmp), "+R" (*_l) : "=&r" (_res), "=&r" (_tmp), "+R" (*_l)
: : /* no inputs */
: "memory"); : "memory");
return _res; return _res;
} }
...@@ -602,7 +602,8 @@ do \ ...@@ -602,7 +602,8 @@ do \
" .set nomacro \n" \ " .set nomacro \n" \
" sync \n" \ " sync \n" \
" .set pop " \ " .set pop " \
: \ : /* no outputs */ \
: /* no inputs */ \
: "memory"); \ : "memory"); \
*((volatile slock_t *) (lock)) = 0; \ *((volatile slock_t *) (lock)) = 0; \
} while (0) } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment