From: Android Tools Maintainers Date: Fri, 27 Jan 2023 05:43:52 +0000 (+0000) Subject: Workaround cacheflush on arm X-Git-Tag: archive/raspbian/29.0.6-25+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c6b3aa3d2b7c060036f8ad387428fe49d88d9ea;p=android-platform-tools.git Workaround cacheflush on arm Forwarded: not-needed Gbp-Pq: Topic art Gbp-Pq: Name workaround-cacheflush-on-arm.patch --- diff --git a/art/libartbase/base/utils.cc b/art/libartbase/base/utils.cc index 19311b3d..f00a81a0 100644 --- a/art/libartbase/base/utils.cc +++ b/art/libartbase/base/utils.cc @@ -78,7 +78,10 @@ static constexpr size_t kMaxFlushAttempts = 4; int CacheFlush(uintptr_t start, uintptr_t limit) { // The signature of cacheflush(2) seems to vary by source. On ARM the system call wrapper // (bionic/SYSCALLS.TXT) has the form: int cacheflush(long start, long end, long flags); - int r = cacheflush(start, limit, kCacheFlushFlags); +// int r = cacheflush(start, limit, kCacheFlushFlags); +//This is only for ARM +//Workaround/skip cacheflush until we find the real replacement + int r = 0; if (r == -1) { CHECK_NE(errno, EINVAL); }