Messages in this thread | | | Date | Mon, 3 Jun 2002 13:36:17 -0600 (MDT) | From | Thunder from the hill <> | Subject | Re: Atomic operations |
| |
Hi,
On Mon, 3 Jun 2002, Richard B. Johnson wrote: > atomic_t test_and_set(int i, atomic_t *v) > { > int ret; > > __asm__ __volatile__(LOCK "movl (%1), %ecx\n" > LOCK "orl %0, (%1)\n" > : ecx (ret) > : "r" (i), "m" (v) > : "ecx", "memory" ); > > return (ret & i); > }
I'm not an expert, but shouldn't "exc" be quoted here? I'm just wondering...
Regards, Thunder -- ship is leaving right on time | Thunder from the hill at ngforever empty harbour, wave goodbye | evacuation of the isle | free inhabitant not directly caveman's paintings drowning | belonging anywhere
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |