Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 10:21:23 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 21263 for review
Message-ID:  <200211191821.gAJILNr0099815@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21263

Change 21263 by jmallett@jmallett_luna on 2002/11/19 10:21:08

	atomic_set is an or operating, from jhb.

Affected files ...

.. //depot/projects/mips/sys/mips/include/atomic.h#3 edit

Differences ...

==== //depot/projects/mips/sys/mips/include/atomic.h#3 (text+ko) ====

@@ -34,7 +34,7 @@
 
 	__asm __volatile (
 	"ll	%[temp], %[p]\n\t"
-	"move	%[temp], %[val]\n\t"
+	"or	%[temp], %[temp], %[val]\n\t"
 	"sc	%[temp], %[p]\n\t"
 	: [val] "=r"(val)
 	: [temp] "r"(temp), [p] "r"(p)
@@ -51,7 +51,7 @@
 
 	__asm __volatile (
 	"lld	%[temp], %[p]\n\t"
-	"move	%[temp], %[val]\n\t"
+	"or	%[temp], %[temp], %[val]\n\t"
 	"scd	%[temp], %[p]\n\t"
 	: [val] "=r"(val)
 	: [temp] "r"(temp), [p] "r"(p)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211191821.gAJILNr0099815>