]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ipf/ProcessorBind.h
Update FUNCTION_ENTRY_POINT() to be compatible with a wider variety of input parameters.
[mirror_edk2.git] / MdePkg / Include / Ipf / ProcessorBind.h
index 16bba6589bc9ad3d5c0c4ddeb3efa44efb8d277f..ac695fe38b6e3141dacc0628f50f07d3eacfc6ac 100644 (file)
@@ -250,7 +250,7 @@ typedef struct {
   @return The pointer to the first instruction of a function given a function pointer.\r
   \r
 **/\r
-#define FUNCTION_ENTRY_POINT(FunctionPointer) (((EFI_PLABEL *)(FunctionPointer))->EntryPoint)\r
+#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(((EFI_PLABEL *)(FunctionPointer))->EntryPoint)\r
 \r
 #endif\r
 \r