[compiler-rt] r263833 - builtins: make __clear_cache work on Linux-ARM
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 14:06:06 PDT 2016
Author: compnerd
Date: Fri Mar 18 16:06:06 2016
New Revision: 263833
URL: http://llvm.org/viewvc/llvm-project?rev=263833&view=rev
Log:
builtins: make __clear_cache work on Linux-ARM
__clear_cache on Android is identical to the version on Linux. Use __linux__
instead of __ANDROID__ as __linux__ is defined for Linux and Android.
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=263833&r1=263832&r2=263833&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Fri Mar 18 16:06:06 2016
@@ -82,7 +82,7 @@ uintptr_t GetCurrentProcess(void);
#endif
#endif
-#if defined(__ANDROID__) && defined(__arm__)
+#if defined(__linux__) && defined(__arm__)
#include <asm/unistd.h>
#endif
@@ -107,7 +107,7 @@ void __clear_cache(void *start, void *en
arg.len = (uintptr_t)end - (uintptr_t)start;
sysarch(ARM_SYNC_ICACHE, &arg);
- #elif defined(__ANDROID__)
+ #elif defined(__linux__)
register int start_reg __asm("r0") = (int) (intptr_t) start;
const register int end_reg __asm("r1") = (int) (intptr_t) end;
const register int flags __asm("r2") = 0;
More information about the llvm-commits
mailing list