RE: write_unlock: replace clear_bit with byte store

From: Christoph Lameter <clameter_at_engr.sgi.com>
Date: 2005-04-29 10:21:35
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?
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Apr 28 20:22:21 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:37 EST