Merge pull request #171 from skirank/master
AARCH64 : Fix address passed to clear cache
This commit is contained in:
commit
f92208be88
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue