Skip to content

Commit

Permalink
Merge pull request #171 from skirank/master
Browse files Browse the repository at this point in the history
AARCH64 : Fix address passed to clear cache
  • Loading branch information
kbrenneman committed Feb 13, 2019
2 parents 72bb963 + 9948df6 commit f92208b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/glvnd_genentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ void SetDispatchFuncPointer(GLVNDGenEntrypoint *entry,
*((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
__builtin___clear_cache((char *)entry->entrypointExec - 1,
(char *)entry->entrypointExec - 1 + sizeof(STUB_TEMPLATE));
__builtin___clear_cache((char *)entry->entrypointExec,
(char *)entry->entrypointExec + sizeof(STUB_TEMPLATE));

#elif defined(USE_PPC64LE_ASM)

Expand Down

0 comments on commit f92208b

Please sign in to comment.