From 6eff5d22b4644852b8f05b55e366bb093844e892 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Mon, 24 Aug 2015 01:42:37 +0000 Subject: BaseTools: Follow PI spec to update ExtendedSize in EFI_FFS_FILE_HEADER2 for FFS data above 16 bytes alignment requirement. PI spec requires FFS header to be at 8 bytes alignment to FV header. And, FFS data alignment requires the beginning of the file data must be aligned on a particular boundary, such as 1, 16, 128 bytes or above. If FFS data alignment requires to be above 16 bytes, and FFS header must be at 8 byte alignment, so FFS header size must be multiple of 8. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18262 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/C/Include/Common/PiFirmwareFile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BaseTools/Source/C/Include/Common/PiFirmwareFile.h') diff --git a/BaseTools/Source/C/Include/Common/PiFirmwareFile.h b/BaseTools/Source/C/Include/Common/PiFirmwareFile.h index ec31eab8a8..2984860230 100644 --- a/BaseTools/Source/C/Include/Common/PiFirmwareFile.h +++ b/BaseTools/Source/C/Include/Common/PiFirmwareFile.h @@ -2,9 +2,9 @@ The firmware file related definitions in PI. @par Revision Reference: - Version 1.0. + Version 1.4. - Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this @@ -110,7 +110,7 @@ typedef struct { EFI_FFS_FILE_ATTRIBUTES Attributes; UINT8 Size[3]; EFI_FFS_FILE_STATE State; - UINT32 ExtendedSize; + UINT64 ExtendedSize; } EFI_FFS_FILE_HEADER2; #define MAX_FFS_SIZE 0x1000000 -- cgit v1.2.3