diff options
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/Pi/PiFirmwareFile.h | 5 |
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
|