diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-25 04:04:37 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-25 04:04:37 +0000 |
commit | 2ab8a29d9e95f0d48edfab16501897e255882988 (patch) | |
tree | 9c59806aa0406e4e6bf7a6d238623786566a7641 /lib | |
parent | 921c8f7da9afe8ade2e613b945de2c3943216b01 (diff) |
builtins: adjust the clobbers list for android __clear_cache
Adjust the clobbers list. This use to work with older versions of gcc, but now
will error on newer versions (tested against 5.3) (as well as clang).
Patch by Tee Hao Wei!
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/builtins/clear_cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/builtins/clear_cache.c b/lib/builtins/clear_cache.c index ede7659a0..80bebd036 100644 --- a/lib/builtins/clear_cache.c +++ b/lib/builtins/clear_cache.c @@ -103,8 +103,9 @@ void __clear_cache(void *start, void *end) { const register int end_reg __asm("r1") = (int) (intptr_t) end; const register int flags __asm("r2") = 0; const register int syscall_nr __asm("r7") = __ARM_NR_cacheflush; - __asm __volatile("svc 0x0" : "=r"(start_reg) - : "r"(syscall_nr), "r"(start_reg), "r"(end_reg), "r"(flags) : "r0"); + __asm __volatile("svc 0x0" + : "=r"(start_reg) + : "r"(syscall_nr), "r"(start_reg), "r"(end_reg)); if (start_reg != 0) { compilerrt_abort(); } |