[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <u2mffe582101004052213zb2e4ec2dp110b8177c04f300e@mail.gmail.com>
Date: Tue, 6 Apr 2010 13:13:57 +0800
From: 杨硕 <shanqn@...il.com>
To: linux-kernel@...r.kernel.org
Subject: in x86 architecture ,why the function atomic_sub_and_test() does not
disable the interrupt?
static inline int atomic_sub_and_test(int i, atomic_t *v)
{
unsigned char c;
asm volatile(LOCK_PREFIX "subl %2,%0; sete %1"
: "+m" (v->counter), "=qm" (c)
: "ir" (i) : "memory");
return c;
}
TIA:)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists