From 2bf0d83532cd830560fd6a7e9ac0409b08f1e7e7 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Sun, 28 Feb 2010 23:53:41 +0000 Subject: 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 --- MdePkg/Include/Pi/PiFirmwareFile.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'MdePkg/Include') 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; -- cgit v1.2.3