From 3963c4bf44b14be594c4253d695652e077856773 Mon Sep 17 00:00:00 2001 From: gikidy Date: Fri, 5 Dec 2008 02:28:51 +0000 Subject: Add comments for the MACRO follow the Spec, and change some definition not match the Spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6852 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Ebc/ProcessorBind.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'MdePkg/Include/Ebc') diff --git a/MdePkg/Include/Ebc/ProcessorBind.h b/MdePkg/Include/Ebc/ProcessorBind.h index 7c10230eed..b83ebe8766 100644 --- a/MdePkg/Include/Ebc/ProcessorBind.h +++ b/MdePkg/Include/Ebc/ProcessorBind.h @@ -4,7 +4,7 @@ We currently only have one EBC complier so there may be some Intel compiler specific functions in this file. - Copyright (c) 2006, Intel Corporation + Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -68,7 +68,7 @@ typedef unsigned long UINTN; /// /// Modifier to ensure that all protocol member functions and EFI intrinsics /// use the correct C calling convention. All protocol member functions and -/// EFI intrinsics are required to modify thier member functions with EFIAPI. +/// EFI intrinsics are required to modify their member functions with EFIAPI. /// #define EFIAPI @@ -79,16 +79,18 @@ typedef unsigned long UINTN; /// #define GLOBAL_REMOVE_IF_UNREFERENCED + /** Return the pointer to the first instruction of a function given a function pointer. On EBC architectures, these two pointer values are the same, so the implementation of this macro is very simple. - @param p A pointer to a function + @param FunctionPointer A pointer to a function. @return The pointer to the first instruction of a function given a function pointer. **/ -#define FUNCTION_ENTRY_POINT(p) (p) + +#define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(FunctionPointer) #endif -- cgit v1.2.3