summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Ipf
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 08:35:07 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 08:35:07 +0000
commit14996c966991de1127fc2d6af8a08df47167b4ab (patch)
tree9e97ad832851ad4714c8c0daaeae7d4072f285ba /MdePkg/Include/Ipf
parent749adca5501fb81275b85213f6c8031cc9a68647 (diff)
downloadedk2-14996c966991de1127fc2d6af8a08df47167b4ab.zip
edk2-14996c966991de1127fc2d6af8a08df47167b4ab.tar.gz
edk2-14996c966991de1127fc2d6af8a08df47167b4ab.tar.bz2
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
Diffstat (limited to 'MdePkg/Include/Ipf')
-rw-r--r--MdePkg/Include/Ipf/ProcessorBind.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h
index 3dbeceb..31940a5 100644
--- a/MdePkg/Include/Ipf/ProcessorBind.h
+++ b/MdePkg/Include/Ipf/ProcessorBind.h
@@ -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