Merge pull request #171 from skirank/master

AARCH64 : Fix address passed to clear cache
This commit is contained in:
Kyle Brenneman 2019-02-13 10:04:47 -07:00 committed by GitHub
commit f92208be88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,8 +314,8 @@ void SetDispatchFuncPointer(GLVNDGenEntrypoint *entry,
*((uintptr_t *)(code + DISPATCH_FUNC_OFFSET)) = (uintptr_t)dispatch; *((uintptr_t *)(code + DISPATCH_FUNC_OFFSET)) = (uintptr_t)dispatch;
// See http://community.arm.com/groups/processors/blog/2010/02/17/caches-and-self-modifying-code // See http://community.arm.com/groups/processors/blog/2010/02/17/caches-and-self-modifying-code
__builtin___clear_cache((char *)entry->entrypointExec - 1, __builtin___clear_cache((char *)entry->entrypointExec,
(char *)entry->entrypointExec - 1 + sizeof(STUB_TEMPLATE)); (char *)entry->entrypointExec + sizeof(STUB_TEMPLATE));
#elif defined(USE_PPC64LE_ASM) #elif defined(USE_PPC64LE_ASM)