]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add the fixed checksum value 0xAA of FFS header according to the latest PI spec.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 28 Feb 2010 23:53:41 +0000 (23:53 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 28 Feb 2010 23:53:41 +0000 (23:53 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10124 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Pi/PiFirmwareFile.h

index 6b61de1bd3b253772a6ef8e869fb0b383b681d98..12e80fdd678252038d29f55a675fa1e3db84a123 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The firmware file related definitions in PI.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2010, Intel Corporation                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -38,7 +38,7 @@ typedef union {
     /// and the checksum is calculated such that the entire file sums to zero.\r
     /// If the FFS_ATTRIB_CHECKSUM bit of the Attributes field is cleared to zero,\r
     /// the IntegrityCheck.Checksum.File field must be initialized with a value of\r
-    /// 0x55AA. The IntegrityCheck.Checksum.File field is valid any time the\r
+    /// 0xAA. The IntegrityCheck.Checksum.File field is valid any time the\r
     /// EFI_FILE_DATA_VALID bit is set in the State field.\r
     ///\r
     UINT8   File;\r
@@ -49,6 +49,12 @@ typedef union {
   UINT16    Checksum16;\r
 } EFI_FFS_INTEGRITY_CHECK;\r
 \r
+///\r
+/// FFS_FIXED_CHECKSUM is the checksum value used when the\r
+/// FFS_ATTRIB_CHECKSUM attribute bit is clear\r
+///\r
+#define FFS_FIXED_CHECKSUM  0xAA\r
+\r
 typedef UINT8 EFI_FV_FILETYPE;\r
 typedef UINT8 EFI_FFS_FILE_ATTRIBUTES;\r
 typedef UINT8 EFI_FFS_FILE_STATE;\r