RE: write_unlock: replace clear_bit with byte store

Christoph Lameter
2005-04-29T00:21:35Z

On Thu, 28 Apr 2005, Chen, Kenneth W wrote:

> Christoph Lameter wrote on Thursday, April 28, 2005 3:52 PM
> > +static inline void _raw_write_unlock(rwlock_t *x) {
> > + u8 *y = (u8 *)x;
> > + barrier();
> > + asm volatile ("st1.rel.nta [%0] = r0\n\t" :: "r"(y+3) : "memory" ); }
>
> Perhaps you should make this code icc friendly by not using asm directly.
> Intel compiler doesn't support asm statement.

How do I do a store with release and nontemporal semantics without asm?