UefiCpuPkg/PiSmmCpuDxeSmm: Remove PSD layout assumptions
https://bugzilla.tianocore.org/show_bug.cgi?id=277 Remove dependency on layout of PROCESSOR_SMM_DESCRIPTOR everywhere possible. The only exception is the standard SMI entry handler template that is included with the PiSmmCpuDxeSmm module. This allows an instance of the SmmCpuFeaturesLib to provide alternate PROCESSOR_SMM_DESCRIPTOR structure layouts. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jeff Fan <jeff.fan@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
@@ -359,31 +359,6 @@ typedef struct {
|
||||
|
||||
#define SMM_PSD_OFFSET 0xfb00
|
||||
|
||||
typedef struct {
|
||||
UINT64 Signature; // Offset 0x00
|
||||
UINT16 Reserved1; // Offset 0x08
|
||||
UINT16 Reserved2; // Offset 0x0A
|
||||
UINT16 Reserved3; // Offset 0x0C
|
||||
UINT16 SmmCs; // Offset 0x0E
|
||||
UINT16 SmmDs; // Offset 0x10
|
||||
UINT16 SmmSs; // Offset 0x12
|
||||
UINT16 SmmOtherSegment; // Offset 0x14
|
||||
UINT16 Reserved4; // Offset 0x16
|
||||
UINT64 Reserved5; // Offset 0x18
|
||||
UINT64 Reserved6; // Offset 0x20
|
||||
UINT64 Reserved7; // Offset 0x28
|
||||
UINT64 SmmGdtPtr; // Offset 0x30
|
||||
UINT32 SmmGdtSize; // Offset 0x38
|
||||
UINT32 Reserved8; // Offset 0x3C
|
||||
UINT64 Reserved9; // Offset 0x40
|
||||
UINT64 Reserved10; // Offset 0x48
|
||||
UINT16 Reserved11; // Offset 0x50
|
||||
UINT16 Reserved12; // Offset 0x52
|
||||
UINT32 Reserved13; // Offset 0x54
|
||||
UINT64 Reserved14; // Offset 0x58
|
||||
} PROCESSOR_SMM_DESCRIPTOR;
|
||||
|
||||
|
||||
///
|
||||
/// All global semaphores' pointer
|
||||
///
|
||||
@@ -427,7 +402,6 @@ extern EFI_PHYSICAL_ADDRESS mGdtBuffer;
|
||||
extern UINTN mGdtBufferSize;
|
||||
extern IA32_DESCRIPTOR gcSmiIdtr;
|
||||
extern VOID *gcSmiIdtrPtr;
|
||||
extern CONST PROCESSOR_SMM_DESCRIPTOR gcPsd;
|
||||
extern UINT64 gPhyMask;
|
||||
extern SMM_DISPATCHER_MP_SYNC_DATA *mSmmMpSyncData;
|
||||
extern UINTN mSmmStackArrayBase;
|
||||
|
Reference in New Issue
Block a user