[llvm-commits] [llvm-gcc-4.2] r78061 - /llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h

Anton Korobeynikov asl at math.spbu.ru
Tue Aug 4 04:32:30 PDT 2009


Author: asl
Date: Tue Aug  4 06:32:20 2009
New Revision: 78061

URL: http://llvm.org/viewvc/llvm-project?rev=78061&view=rev
Log:
Use proper variant of swi instruction, since syscall number is passed in r7 register

Modified:
    llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h

Modified: llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h?rev=78061&r1=78060&r2=78061&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/linux-eabi.h Tue Aug  4 06:32:20 2009
@@ -79,7 +79,7 @@
   register unsigned long _end __asm ("a2") = (unsigned long) (END);	\
   register unsigned long _flg __asm ("a3") = 0;				\
   register unsigned long _scno __asm ("r7") = 0xf0002;			\
-  __asm __volatile ("swi 0x9f0002		@ sys_cacheflush"	\
+  __asm __volatile ("swi 0		@ sys_cacheflush"		\
 		    : "=r" (_beg)					\
 		    : "0" (_beg), "r" (_end), "r" (_flg), "r" (_scno));	\
 }





More information about the llvm-commits mailing list