From: lgao4 Date: Sun, 28 Feb 2010 23:53:41 +0000 (+0000) Subject: Add the fixed checksum value 0xAA of FFS header according to the latest PI spec. X-Git-Tag: edk2-stable201903~16212 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2bf0d83532cd830560fd6a7e9ac0409b08f1e7e7 Add the fixed checksum value 0xAA of FFS header according to the latest PI spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10124 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Include/Pi/PiFirmwareFile.h b/MdePkg/Include/Pi/PiFirmwareFile.h index 6b61de1bd3..12e80fdd67 100644 --- a/MdePkg/Include/Pi/PiFirmwareFile.h +++ b/MdePkg/Include/Pi/PiFirmwareFile.h @@ -1,7 +1,7 @@ /** @file The firmware file related definitions in PI. - Copyright (c) 2006 - 2009, Intel Corporation + Copyright (c) 2006 - 2010, 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 distribution. The full text of the license may be found at @@ -38,7 +38,7 @@ typedef union { /// and the checksum is calculated such that the entire file sums to zero. /// If the FFS_ATTRIB_CHECKSUM bit of the Attributes field is cleared to zero, /// the IntegrityCheck.Checksum.File field must be initialized with a value of - /// 0x55AA. The IntegrityCheck.Checksum.File field is valid any time the + /// 0xAA. The IntegrityCheck.Checksum.File field is valid any time the /// EFI_FILE_DATA_VALID bit is set in the State field. /// UINT8 File; @@ -49,6 +49,12 @@ typedef union { UINT16 Checksum16; } EFI_FFS_INTEGRITY_CHECK; +/// +/// FFS_FIXED_CHECKSUM is the checksum value used when the +/// FFS_ATTRIB_CHECKSUM attribute bit is clear +/// +#define FFS_FIXED_CHECKSUM 0xAA + typedef UINT8 EFI_FV_FILETYPE; typedef UINT8 EFI_FFS_FILE_ATTRIBUTES; typedef UINT8 EFI_FFS_FILE_STATE;