Correct Minor Comments in M3 to M4 review.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6842 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2008-12-04 08:35:07 +00:00
parent 749adca550
commit 14996c9669
10 changed files with 60 additions and 23 deletions

View File

@@ -237,6 +237,18 @@ typedef struct {
UINT64 r11;
} PAL_CALL_RETURN;
/**
Return the pointer to the first instruction of a function given a function pointer.
For Itanium CPUs, all function calls are made through a PLABEL, so a pointer to a function
is actually a pointer to a PLABEL. The pointer to the first instruction of the function
is contained within the PLABEL. This macro may be used to retrieve a pointer to the first
instruction of a function independent of the CPU architecture being used. This is very
useful when printing function addresses through DEBUG() macros.
@param p A pointer to a function
@return The pointer to the first instruction of a function given a function pointer.
**/
#define FUNCTION_ENTRY_POINT(p) (((EFI_PLABEL *)(p))->EntryPoint)
#endif