From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Kenneth W" Date: Thu, 28 Apr 2005 23:55:52 +0000 Subject: RE: write_unlock: replace clear_bit with byte store Message-Id: <200504282355.j3SNtrg11649@unix-os.sc.intel.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org 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.