PERFORCE change 132435 for review

Warner Losh imp at FreeBSD.org
Thu Jan 3 14:27:21 PST 2008


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

Change 132435 by imp at imp_paco-paco on 2008/01/03 22:26:45

	asm -> __asm

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/defs_mips.h#3 edit

Differences ...

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

@@ -77,13 +77,13 @@
 {
 	UNSIGNED_32 data;
 	/* Fetch old value and increment */
-	asm volatile ("1:; ll %0, 0x0(%1)"
+	__asm __volatile ("1:; ll %0, 0x0(%1)"
 			: "=r" (data)		/* outputs */
 			: "r"  (addr));		/* inputs */
 	data += 1;
 
 	/* Write it back and check for success */
-	asm volatile ("sc %0, 0x0(%1); beqz %0, 1b"
+	__asm __volatile ("sc %0, 0x0(%1); beqz %0, 1b"
 			:				/* outputs */
 			: "r" (data), "r" (addr));	/* inputs */
 }
@@ -98,13 +98,13 @@
 	UNSIGNED_32 data;
 
 	/* Fetch old value and decrement */
-	asm volatile ("1:; ll %0, 0x0(%1)"
+	__asm __volatile ("1:; ll %0, 0x0(%1)"
 			: "=r" (data)		/* outputs */
 			: "r"  (addr));		/* inputs */
 	data -= 1;
 
 	/* Write it back and check for success */
-	asm volatile ("sc %0, 0x0(%1); beqz %0, 1b"
+	__asm __volatile ("sc %0, 0x0(%1); beqz %0, 1b"
 			:				/* outputs */
 			: "r" (data), "r" (addr));	/* inputs */
 }
@@ -120,14 +120,14 @@
 	UNSIGNED_32 tmp;
 
 	/* Fetch old value */
-	asm volatile ("1:; ll %0, 0x0(%1)"
+	__asm __volatile ("1:; ll %0, 0x0(%1)"
 			: "=r" (data)		/* outputs */
 			: "r"  (addr));		/* inputs */
 
 	tmp = new_value;
 
 	/* Write it back and check for success */
-	asm volatile ("sc %0, 0x0(%1); beqz %0, 1b"
+	__asm __volatile ("sc %0, 0x0(%1); beqz %0, 1b"
 			:				/* outputs */
 			: "r" (tmp), "r" (addr));	/* inputs */
 


More information about the p4-projects mailing list