2 Definitions to install Multiple Processor PPI.
4 Copyright (c) 2015, 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
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.
15 #ifndef _CPU_MP_PEI_H_
16 #define _CPU_MP_PEI_H_
20 #include <Ppi/SecPlatformInformation.h>
22 #include <Library/BaseLib.h>
23 #include <Library/BaseMemoryLib.h>
24 #include <Library/DebugLib.h>
25 #include <Library/HobLib.h>
26 #include <Library/LocalApicLib.h>
27 #include <Library/PcdLib.h>
28 #include <Library/PeimEntryPoint.h>
29 #include <Library/PeiServicesLib.h>
30 #include <Library/UefiCpuLib.h>
41 // AP reset code information
44 UINT8
*RendezvousFunnelAddress
;
45 UINTN PModeEntryOffset
;
46 UINTN LModeEntryOffset
;
47 UINTN RendezvousFunnelSize
;
48 } MP_ASSEMBLY_ADDRESS_MAP
;
50 typedef struct _PEI_CPU_MP_DATA PEI_CPU_MP_DATA
;
66 UINT32 DefaultSize
: 1;
67 UINT32 Granularity
: 1;
74 // MP CPU exchange information for AP reset code
81 IA32_DESCRIPTOR GdtrProfile
;
82 IA32_DESCRIPTOR IdtrProfile
;
85 UINTN NumApsExecuting
;
88 } MP_CPU_EXCHANGE_INFO
;
94 EFI_HEALTH_FLAGS Health
;
100 // PEI CPU MP Data save in memory
102 struct _PEI_CPU_MP_DATA
{
106 UINTN CpuApStackSize
;
107 MP_ASSEMBLY_ADDRESS_MAP AddressMap
;
110 UINTN BackupBufferSize
;
111 PEI_CPU_DATA
*CpuData
;
112 volatile MP_CPU_EXCHANGE_INFO
*MpCpuExchangeInfo
;
116 Assembly code to get starting address and size of the rendezvous entry for APs.
117 Information for fixing a jump instruction in the code is also returned.
119 @param AddressMap Output buffer for address map information.
124 OUT MP_ASSEMBLY_ADDRESS_MAP
*AddressMap
128 Assembly code to load GDT table and update segment accordingly.
130 @param Gdtr Pointer to GDT descriptor
135 IN IA32_DESCRIPTOR
*Gdtr