]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ebc/ProcessorBind.h
Add comments for the MACRO follow the Spec, and change some definition not match...
[mirror_edk2.git] / MdePkg / Include / Ebc / ProcessorBind.h
index 7c10230eedde9c25beda9b7ce3af8b0ae7bdcb65..b83ebe8766d939bbe3ad668eebaf43402b27c2fb 100644 (file)
@@ -4,7 +4,7 @@
   We currently only have one EBC complier so there may be some Intel compiler\r
   specific functions in this file.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006, Intel Corporation<BR>                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -68,7 +68,7 @@ typedef unsigned long         UINTN;
 ///\r
 /// Modifier to ensure that all protocol member functions and EFI intrinsics\r
 /// use the correct C calling convention. All protocol member functions and\r
-/// EFI intrinsics are required to modify thier member functions with EFIAPI.\r
+/// EFI intrinsics are required to modify their member functions with EFIAPI.\r
 ///\r
 #define EFIAPI    \r
 \r
@@ -79,16 +79,18 @@ typedef unsigned long         UINTN;
 ///\r
 #define GLOBAL_REMOVE_IF_UNREFERENCED\r
 \r
+\r
 /**\r
   Return the pointer to the first instruction of a function given a function pointer.\r
   On EBC architectures, these two pointer values are the same, \r
   so the implementation of this macro is very simple.\r
   \r
-  @param  p A pointer to a function\r
+  @param  FunctionPointer   A pointer to a function.\r
 \r
   @return The pointer to the first instruction of a function given a function pointer.\r
 **/\r
-#define FUNCTION_ENTRY_POINT(p) (p)\r
+\r
+#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(FunctionPointer)\r
 \r
 #endif \r
 \r