Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 19:12:47 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 31912 for review
Message-ID:  <200305270212.h4R2Clvq037367@repoman.freebsd.org>

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

Change 31912 by jmallett@jmallett_dalek on 2003/05/26 19:12:44

	Put input constraints that we actually need to have the
	value of into the input field.

Affected files ...

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

Differences ...

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

@@ -107,8 +107,8 @@
 	asmop "\n\t"							\
 	"sc	%[temp], %[p]\n\t"					\
 	"beqz	%[temp], 1b\n\t"					\
-	: [val] "=&r"(val), [temp] "=&r"(temp), [p] "+m"(*p)		\
-	: 								\
+	: [temp] "=&r"(temp), [p] "+m"(*p)				\
+	: [val] "r"(val)						\
 	: "memory"							\
 	);								\
 }
@@ -195,8 +195,8 @@
 	asmop "\n\t"							\
 	"scd	%[temp], %[p]\n\t"					\
 	"beqz	%[temp], 1b\n\t"					\
-	: [val] "=&r"(val), [temp] "=&r"(temp), [p] "+m"(*p)		\
-	: 								\
+	: [temp] "=&r"(temp), [p] "+m"(*p)				\
+	: [val] "r"(val)						\
 	: "memory"							\
 	);								\
 }



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