1 /** @file 2 Sample to provide TempRamInitParams data. 3 4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php. 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 12 13 **/ 14 15 #include <Library/PcdLib.h> 16 #include <FspEas.h> 17 18 typedef struct { 19 UINT32 MicrocodeRegionBase; 20 UINT32 MicrocodeRegionSize; 21 UINT32 CodeRegionBase; 22 UINT32 CodeRegionSize; 23 } FSPT_CORE_UPD; 24 25 typedef struct { 26 FSP_UPD_HEADER FspUpdHeader; 27 FSPT_CORE_UPD FsptCoreUpd; 28 } FSPT_UPD_CORE_DATA; 29 30 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr = { 31 { 32 0x4450555F54505346, 33 0x00, 34 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 35 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 36 } 37 }, 38 { 39 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchAddress) + FixedPcdGet32 (PcdFlashMicrocodeOffset)), 40 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchRegionSize) - FixedPcdGet32 (PcdFlashMicrocodeOffset)), 41 FixedPcdGet32 (PcdFlashCodeCacheAddress), 42 FixedPcdGet32 (PcdFlashCodeCacheSize), 43 } 44 }; 45 46