2 Sample to provide TempRamInitParams data.
4 Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/PcdLib.h>
13 EFI_PHYSICAL_ADDRESS MicrocodeRegionBase
;
14 UINT64 MicrocodeRegionSize
;
15 EFI_PHYSICAL_ADDRESS CodeRegionBase
;
16 UINT64 CodeRegionSize
;
20 FSP_UPD_HEADER FspUpdHeader
;
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.
26 FSPT_ARCH2_UPD FsptArchUpd
;
27 FSPT_CORE_UPD FsptCoreUpd
;
30 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr
= {
34 // UPD header revision must be equal or greater than 2 when the structure is compliant with FSP spec 2.2.
37 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
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.
53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
58 FixedPcdGet32 (PcdCpuMicrocodePatchAddress
),
59 FixedPcdGet32 (PcdCpuMicrocodePatchRegionSize
),
60 FixedPcdGet32 (PcdFlashCodeCacheAddress
),
61 FixedPcdGet32 (PcdFlashCodeCacheSize
),