summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Kamath2014-06-26 07:19:59 -0500
committerGerrit Code Review2014-06-24 01:33:30 -0500
commita42d5bf0064e8c8ce50b22abe13bb6eed4ea9dac (patch)
treed93a75c20c326c8e4f66bc18ba0d3ede4b7e6596 /libpixelflinger
parent64f5fe2796c5d20e0b1069837cac269f4aade331 (diff)
parent410ae2fe8e5d78cbce7b20be87828c5595e76842 (diff)
downloadplatform-system-core-a42d5bf0064e8c8ce50b22abe13bb6eed4ea9dac.tar.gz
platform-system-core-a42d5bf0064e8c8ce50b22abe13bb6eed4ea9dac.tar.xz
platform-system-core-a42d5bf0064e8c8ce50b22abe13bb6eed4ea9dac.zip
Merge "pixelflinger: Use pointer arithmetic to determine cache flush parameters"
Diffstat (limited to 'libpixelflinger')
-rw-r--r--libpixelflinger/codeflinger/CodeCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp
index 8afe0a994..cfd2b3709 100644
--- a/libpixelflinger/codeflinger/CodeCache.cpp
+++ b/libpixelflinger/codeflinger/CodeCache.cpp
@@ -201,9 +201,9 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase,
201 mCacheInUse += assemblySize; 201 mCacheInUse += assemblySize;
202 mWhen++; 202 mWhen++;
203 // synchronize caches... 203 // synchronize caches...
204 const long base = long(assembly->base()); 204 void* base = assembly->base();
205 const long curr = base + long(assembly->size()); 205 void* curr = (uint8_t*)base + assembly->size();
206 __builtin___clear_cache((void*)base, (void*)curr); 206 __builtin___clear_cache(base, curr);
207 } 207 }
208 208
209 pthread_mutex_unlock(&mLock); 209 pthread_mutex_unlock(&mLock);