Re: [patch 3/8] mutex subsystem, add atomic_*_call_if_*() to i386

From: Ingo Molnar
Date: Wed Dec 21 2005 - 14:47:38 EST



* Linus Torvalds <torvalds@xxxxxxxx> wrote:

>
> On Wed, 21 Dec 2005, Ingo Molnar wrote:
> >
> > add two new atomic ops to i386: atomic_dec_call_if_negative() and
> > atomic_inc_call_if_nonpositive(), which are conditional-call-if
> > atomic operations. Needed by the new mutex code.
>
> Umm. This asm is broken. It doesn't mark %eax as changed, [...]

hm, i thought gcc treats all explicitly used register in the asm as
clobbered - and i'm using %%eax explicitly for that reason. Or is that
only the case if that's an input/output register as well?

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/