summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Pi/PiFirmwareFile.h
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-04 08:23:26 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-04 08:23:26 +0000
commitddd3f4717770d0566ed01f930d836c85bb07412f (patch)
tree99a1dde321d7abb3c6a5f9d2262641cb68f8d2d9 /MdePkg/Include/Pi/PiFirmwareFile.h
parent192f6d4c29fa0dd595b8d5a36bd2078e1474aa4e (diff)
downloadedk2-platforms-ddd3f4717770d0566ed01f930d836c85bb07412f.tar.xz
Add macro SECTION_SIZE(SectionHeader) in MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3030 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Pi/PiFirmwareFile.h')
-rw-r--r--MdePkg/Include/Pi/PiFirmwareFile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/MdePkg/Include/Pi/PiFirmwareFile.h b/MdePkg/Include/Pi/PiFirmwareFile.h
index b84e9828c9..3f2b8b126e 100644
--- a/MdePkg/Include/Pi/PiFirmwareFile.h
+++ b/MdePkg/Include/Pi/PiFirmwareFile.h
@@ -236,5 +236,10 @@ typedef struct {
CHAR16 VersionString[1];
} EFI_VERSION_SECTION;
+
+#define SECTION_SIZE(SectionHeaderPtr) \
+ ((UINT32) (*((UINT32 *) ((EFI_COMMON_SECTION_HEADER *) SectionHeaderPtr)->Size) & 0x00ffffff))
+
+
#endif