]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update FUNCTION_ENTRY_POINT() to be compatible with a wider variety of input parameters.
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Dec 2008 23:23:59 +0000 (23:23 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 5 Dec 2008 23:23:59 +0000 (23:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6883 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Ebc/ProcessorBind.h
MdePkg/Include/Ia32/ProcessorBind.h
MdePkg/Include/Ipf/ProcessorBind.h
MdePkg/Include/X64/ProcessorBind.h

index b83ebe8766d939bbe3ad668eebaf43402b27c2fb..966ddb67813b3dbed497932e4f51f061b23e859b 100644 (file)
@@ -90,7 +90,7 @@ typedef unsigned long         UINTN;
   @return The pointer to the first instruction of a function given a function pointer.\r
 **/\r
 \r
-#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(FunctionPointer)\r
+#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)\r
 \r
 #endif \r
 \r
index b3486ea8ef9b44af6f8b88741aa1f72371b1c474..3f3fae73cf0e7c662494a1034f524bd7ca9a664f 100644 (file)
@@ -219,7 +219,7 @@ typedef INT32   INTN;
   @return The pointer to the first instruction of a function given a function pointer.\r
   \r
 **/\r
-#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(FunctionPointer)\r
+#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)\r
 \r
 #endif\r
 \r
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
index 91b0306dcbcb4da4856a47be20e4c9d557700ff2..a54cc1b5d029f2dc89049796f9325aa7696321a1 100644 (file)
@@ -248,7 +248,7 @@ typedef INT64   INTN;
   @return The pointer to the first instruction of a function given a function pointer.\r
   \r
 **/\r
-#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(FunctionPointer)\r
+#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)\r
 \r
 #endif\r
 \r