PERFORCE change 570986 for review

Robert Watson rwatson at FreeBSD.org
Tue Sep 3 21:20:41 UTC 2013


http://p4web.freebsd.org/@@570986?ac=10

Change 570986 by rwatson at rwatson_zenith_cl_cam_ac_uk on 2013/09/03 21:20:00

	Correcty '%c' -> '$c' in three currently unused CHERI macros; when
	unused, these aren't syntax checked by the compiler/assembler.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/sys/mips/include/cheri.h#20 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/sys/mips/include/cheri.h#20 (text+ko) ====

@@ -169,7 +169,7 @@
  * believe these require no clobbers, as they don't directly replace c0.
  */
 #define	CHERI_CCALL(cs, cb) do {					\
-	__asm__ __volatile__ ("ccall $c%0, %c%1" : :			\
+	__asm__ __volatile__ ("ccall $c%0, $c%1" : :			\
 	    "i" (cs), "i" (cb));					\
 } while (0)
 
@@ -260,10 +260,10 @@
  */
 #define	CHERI_CGETPCC(v, cd) do {					\
 	if ((cd) == 0)							\
-		__asm__ __volatile__ ("cgetpcc %0, %c%1" : "=r" (v) :	\
+		__asm__ __volatile__ ("cgetpcc %0, $c%1" : "=r" (v) :	\
 		    "i" (cd) : "memory");				\
 	else								\
-		__asm__ __volatile__ ("cgetpcc %0, %c%1" : "=r" (v) :	\
+		__asm__ __volatile__ ("cgetpcc %0, $c%1" : "=r" (v) :	\
 		    "i" (cd));						\
 } while (0)
 


More information about the p4-projects mailing list