This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for ARM backend...


Hi guys,

Phil Blundell recently submitted a patch for a similar CLEAR_CACHE macro I added
to GLIBC.  It should be applied here as well.  I believe it is appropriate for
all branches.

2000-01-13  Scott Bambrough  <scottb@netwinder.org>

        * gcc/config/arm/linux-gas.h (CLEAR_CACHE): System calls clobber R0.

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org
Index: linux-gas.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/arm/linux-gas.h,v
retrieving revision 1.4.6.2
diff -u -p -r1.4.6.2 linux-gas.h
--- linux-gas.h	1999/10/27 13:42:38	1.4.6.2
+++ linux-gas.h	2000/01/13 15:38:26
@@ -79,5 +79,8 @@ Boston, MA 02111-1307, USA.  */
   register unsigned long _beg __asm ("a1") = (unsigned long) (BEG);	\
   register unsigned long _end __asm ("a2") = (unsigned long) (END);	\
   register unsigned long _flg __asm ("a3") = 0;				\
-  __asm __volatile ("swi 0x9f0002");					\
+  __asm __volatile ("swi 0x9f0002	@ sys_cacheflush"		\
+  		    : /* no outputs */					\
+  		    : /* no inputs */					\
+  		    : "a1");						\
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]