From: 杨硕 on 6 Apr 2010 01:20 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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: /dev/mem: Allow rewinding Next: [PATCH] pl061: Trivial fix for offset value range checking |