forked from OSchip/llvm-project
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. llvm-svn: 263833
This commit is contained in:
parent
fb21509509
commit
61e970607e
|
@ -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 *end) {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue