Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10e36e80 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android Git Automerger
Browse files

am a42d5bf0: Merge "pixelflinger: Use pointer arithmetic to determine cache flush parameters"

* commit 'a42d5bf0':
  pixelflinger: Use pointer arithmetic to determine cache flush parameters
parents 3a3b12c2 a42d5bf0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -201,9 +201,9 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase,
        mCacheInUse += assemblySize;
        mWhen++;
        // synchronize caches...
        const long base = long(assembly->base());
        const long curr = base + long(assembly->size());
        __builtin___clear_cache((void*)base, (void*)curr);
        void* base = assembly->base();
        void* curr = (uint8_t*)base + assembly->size();
        __builtin___clear_cache(base, curr);
    }

    pthread_mutex_unlock(&mLock);