summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2016-09-30 10:42:26 +0800
committerJiewen Yao <jiewen.yao@intel.com>2016-10-08 09:31:05 +0800
commit9381ad8701275b802c6f6c9d5629a084afa93ddc (patch)
treeb27fdb6c361ae74285455b0939e1441580b9f127 /MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h
parent00b7cc0fe327fcd00d70a8d30f16245cca0c55f2 (diff)
downloadedk2-9381ad8701275b802c6f6c9d5629a084afa93ddc.zip
edk2-9381ad8701275b802c6f6c9d5629a084afa93ddc.tar.gz
edk2-9381ad8701275b802c6f6c9d5629a084afa93ddc.tar.bz2
MdeModulePkg/CdExpressPei: Fix capsule size mismatch issue.
Current PeiCdExpress driver will return capsule size to be block aligned. It will fail if we check the capsuleImageSize field. The patch correct the returned capsule size. Tested-by: Eric Dong <eric.dong@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h')
-rw-r--r--MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h b/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h
index 5ca2672..91f34dc 100644
--- a/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h
+++ b/MdeModulePkg/Universal/Disk/CdExpressPei/PeiCdExpress.h
@@ -66,6 +66,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
typedef struct {
UINTN CapsuleStartLBA;
UINTN CapsuleSize;
+ UINTN CapsuleBlockAlignedSize;
UINTN IndexBlock;
EFI_PEI_RECOVERY_BLOCK_IO_PPI *BlockIo;
EFI_PEI_RECOVERY_BLOCK_IO2_PPI *BlockIo2;