svn commit: r195371 - projects/mips/sys/mips/mips

Warner Losh imp at FreeBSD.org
Sun Jul 5 15:21:35 UTC 2009


Author: imp
Date: Sun Jul  5 15:21:35 2009
New Revision: 195371
URL: http://svn.freebsd.org/changeset/base/195371

Log:
  Now that we define atomic_{load,store}_64 inline in atomic.h, we don't
  need to define them here for the !N64 case.
  
  We now define atomic_readandclear_64 in atomic.h, so no need to repeat
  it here.

Modified:
  projects/mips/sys/mips/mips/support.S

Modified: projects/mips/sys/mips/mips/support.S
==============================================================================
--- projects/mips/sys/mips/mips/support.S	Sun Jul  5 15:20:16 2009	(r195370)
+++ projects/mips/sys/mips/mips/support.S	Sun Jul  5 15:21:35 2009	(r195371)
@@ -1316,17 +1316,11 @@ END(atomic_subtract_8)
 	.set	mips3
 #endif
 
-LEAF(atomic_readandclear_64)
-1:
-	lld	v0, 0(a0)
-	li	t0, 0
-	scd	t0, 0(a0)
-	beqz	t0, 1b
-	nop
-	j	ra
-	nop
-END(atomic_readandclear_64)
-
+#if !defined(__mips_n64) && !defined(__mips_n32)	
+	/*
+	 * I don't know if these routines have the right number of
+	 * NOPs in it for all processors.  XXX
+	 */
 LEAF(atomic_store_64)
 	mfc0	t1, COP_0_STATUS_REG
 	and	t2, t1, ~SR_INT_ENAB
@@ -1372,6 +1366,7 @@ LEAF(atomic_load_64)
 	j	ra
 	nop
 END(atomic_load_64)
+#endif
 
 #if defined(DDB) || defined(DEBUG)
 


More information about the svn-src-projects mailing list