X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Nt32Pkg%2FFvbServicesRuntimeDxe%2FFvbInfo.c;h=324374c44f4786a112106a7846c7023b05a15ed8;hb=24a0fd47cdf45d745a73ceb2f140b88f7017e700;hp=b99790fc3bd2fe876f13006509a6803ff2960384;hpb=627abd57e51799ff4023bd3d0ca4c3fa35059fc9;p=mirror_edk2.git diff --git a/Nt32Pkg/FvbServicesRuntimeDxe/FvbInfo.c b/Nt32Pkg/FvbServicesRuntimeDxe/FvbInfo.c index b99790fc3b..324374c44f 100644 --- a/Nt32Pkg/FvbServicesRuntimeDxe/FvbInfo.c +++ b/Nt32Pkg/FvbServicesRuntimeDxe/FvbInfo.c @@ -1,7 +1,7 @@ /**@file -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006, 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 http://opensource.org/licenses/bsd-license.php @@ -31,9 +31,7 @@ Abstract: #include #include #include -#include #include -#include #include // // The Library classes this module consumes @@ -72,18 +70,20 @@ EFI_FVB_MEDIA_INFO mPlatformFvbMediaInfo[] = { EFI_FIRMWARE_FILE_SYSTEM2_GUID, FixedPcdGet32 (PcdWinNtFlashFvRecoverySize), EFI_FVH_SIGNATURE, - EFI_FVB2_READ_ENABLED_CAP | + EFI_FVB2_MEMORY_MAPPED | + EFI_FVB2_READ_ENABLED_CAP | EFI_FVB2_READ_STATUS | EFI_FVB2_WRITE_ENABLED_CAP | EFI_FVB2_WRITE_STATUS | - EFI_FVB2_ERASE_POLARITY, + EFI_FVB2_ERASE_POLARITY | + EFI_FVB2_ALIGNMENT_16, sizeof (EFI_FIRMWARE_VOLUME_HEADER) + sizeof (EFI_FV_BLOCK_MAP_ENTRY), - 0, // CheckSum - 0, // ExtHeaderOffset + 0xE947, // CheckSum + 0, // ExtHeaderOffset { 0, }, // Reserved[1] - 1, // Revision + 2, // Revision { FixedPcdGet32 (PcdWinNtFlashFvRecoverySize)/FixedPcdGet32 (PcdWinNtFirmwareBlockSize), FixedPcdGet32 (PcdWinNtFirmwareBlockSize), @@ -112,18 +112,20 @@ EFI_FVB_MEDIA_INFO mPlatformFvbMediaInfo[] = { FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) + FixedPcdGet32 (PcdWinNtFlashNvStorageEventLogSize), EFI_FVH_SIGNATURE, - EFI_FVB2_READ_ENABLED_CAP | + EFI_FVB2_MEMORY_MAPPED | + EFI_FVB2_READ_ENABLED_CAP | EFI_FVB2_READ_STATUS | EFI_FVB2_WRITE_ENABLED_CAP | EFI_FVB2_WRITE_STATUS | - EFI_FVB2_ERASE_POLARITY, + EFI_FVB2_ERASE_POLARITY | + EFI_FVB2_ALIGNMENT_16, sizeof (EFI_FIRMWARE_VOLUME_HEADER) + sizeof (EFI_FV_BLOCK_MAP_ENTRY), - 0, // CheckSum - 0, // ExtHeaderOffset + 0xFBFF, // CheckSum + 0, // ExtHeaderOffset { 0, }, // Reserved[1] - 1, // Revision + 2, // Revision { (FixedPcdGet32 (PcdFlashNvStorageVariableSize) + FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) +