]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuPeiLibConstructor.c
ArmPkg/ArmMmuLib: Explicitly cast function pointer argument
[mirror_edk2.git] / ArmPkg / Library / ArmMmuLib / AArch64 / ArmMmuPeiLibConstructor.c
index 80317923cfa49479581c696c55e439407834ff04..4fc3c92fdbf59afb03cd3d4061722908d218a8e3 100644 (file)
@@ -47,7 +47,7 @@ ArmMmuPeiLibConstructor (
     // The ArmReplaceLiveTranslationEntry () helper function may be invoked\r
     // with the MMU off so we have to ensure that it gets cleaned to the PoC\r
     //\r
-    WriteBackDataCacheRange (ArmReplaceLiveTranslationEntry,\r
+    WriteBackDataCacheRange ((VOID *)(UINTN)ArmReplaceLiveTranslationEntry,\r
       ArmReplaceLiveTranslationEntrySize);\r
   }\r
 \r