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