Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 21:20:41 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 570986 for review
Message-ID:  <201309032120.r83LKfB6046452@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@570986?ac=10

Change 570986 by rwatson@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)
 



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