Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecRamInitData.c
- Timestamp:
- Apr 14, 2023 3:17:44 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156854
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecRamInitData.c
r89983 r99404 2 2 Sample to provide TempRamInitParams data. 3 3 4 Copyright (c) 2014 - 202 0, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.<BR> 5 5 SPDX-License-Identifier: BSD-2-Clause-Patent 6 6 … … 11 11 12 12 typedef struct { 13 UINT32MicrocodeRegionBase;14 UINT 32MicrocodeRegionSize;15 UINT32CodeRegionBase;16 UINT 32CodeRegionSize;13 EFI_PHYSICAL_ADDRESS MicrocodeRegionBase; 14 UINT64 MicrocodeRegionSize; 15 EFI_PHYSICAL_ADDRESS CodeRegionBase; 16 UINT64 CodeRegionSize; 17 17 } FSPT_CORE_UPD; 18 18 … … 20 20 FSP_UPD_HEADER FspUpdHeader; 21 21 // 22 // If platform does not support FSP spec 2.2 remove FSPT_ARCH_UPD structure. 22 // If FSP spec version < 2.2, remove FSPT_ARCH_UPD structure. 23 // Else If FSP spec version >= 2.2 and FSP spec version < 2.4, use FSPT_ARCH_UPD structure. 24 // Else, use FSPT_ARCH2_UPD structure. 23 25 // 24 FSPT_ARCH _UPDFsptArchUpd;26 FSPT_ARCH2_UPD FsptArchUpd; 25 27 FSPT_CORE_UPD FsptCoreUpd; 26 28 } FSPT_UPD_CORE_DATA; 27 29 28 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr = {30 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr = { 29 31 { 30 32 0x4450555F54505346, … … 34 36 0x02, 35 37 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 36 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 37 } 38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } 38 39 }, 39 40 // 40 // If platform does not support FSP spec 2.2 remove FSPT_ARCH_UPD structure. 41 // If FSP spec version < 2.2, remove FSPT_ARCH_UPD structure. 42 // Else If FSP spec version >= 2.2 and FSP spec version < 2.4, use FSPT_ARCH_UPD structure. 43 // Else, use FSPT_ARCH2_UPD structure. 41 44 // 42 45 { 43 0x0 1,46 0x02, 44 47 { 45 48 0x00, 0x00, 0x00 … … 49 52 { 50 53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 , 0x00, 0x00, 0x00, 0x0054 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 52 55 } 53 56 }, 54 57 { 55 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchAddress) + FixedPcdGet32 (PcdFlashMicrocodeOffset)),56 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchRegionSize) - FixedPcdGet32 (PcdFlashMicrocodeOffset)),58 FixedPcdGet32 (PcdCpuMicrocodePatchAddress), 59 FixedPcdGet32 (PcdCpuMicrocodePatchRegionSize), 57 60 FixedPcdGet32 (PcdFlashCodeCacheAddress), 58 61 FixedPcdGet32 (PcdFlashCodeCacheSize), 59 62 } 60 63 }; 61
Note:
See TracChangeset
for help on using the changeset viewer.