PERFORCE change 100684 for review

Olivier Houchard cognet at FreeBSD.org
Thu Jul 6 00:52:51 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100684

Change 100684 by cognet at cognet on 2006/07/06 00:52:15

	Ooops prefix the cp number with $.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/include/cpufunc.h#3 edit

Differences ...

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

@@ -44,9 +44,9 @@
 {
 	register_t ret, tmp;
 	
-	__asm __volatile("mfc0	%0, 12\n" /* MIPS_COP_0_STATUS */
-	 		 "and	%1, %0, ~1\n" /* MIPS_SR_INT_IE */
-			 "mtc0	%1, 12\n" /* MIPS_COP_0_STATUS */
+	__asm __volatile("mfc0	%0, $12\n" /* MIPS_COP_0_STATUS */
+	 		 "and	%1, $%0, ~1\n" /* MIPS_SR_INT_IE */
+			 "mtc0	%1, $12\n" /* MIPS_COP_0_STATUS */
 			 : "=r" (ret), "=r" (tmp));
 	return (ret);
 }
@@ -56,9 +56,9 @@
 {
 	register_t tmp;
 
-	__asm __volatile("mfc %0, 12\n" /* MIPS_COP_0_STATUS */
+	__asm __volatile("mfc %0, $12\n" /* MIPS_COP_0_STATUS */
 	    		 "and %0, %0, 1\n" /* MIPS_SR_INT_IE */
-			 "mtc0 %0, 12\n" /* MIPS_COP_0_STATUS */
+			 "mtc0 %0, $12\n" /* MIPS_COP_0_STATUS */
 			 : "=r" (tmp));
 }
 
@@ -66,7 +66,7 @@
 intr_restore(register_t flag)
 {
 
-	__asm __volatile("mtc0 %0, 12\n" /* MIPS_COP_0_STATUS */
+	__asm __volatile("mtc0 %0, $12\n" /* MIPS_COP_0_STATUS */
 	   : : "r" (flag));
 }
 


More information about the p4-projects mailing list