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
This commit is contained in:
yshang1 2007-07-04 08:23:26 +00:00
parent 192f6d4c29
commit ddd3f47177
1 changed files with 5 additions and 0 deletions

View File

@ -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