Eliminate EFI_IMAGE_MACHINE_TYPE_SUPPORTED.
authorYao, Jiewen <jiewen.yao@intel.com>
Wed, 25 Nov 2015 04:23:01 +0000 (04:23 +0000)
committerjyao1 <jyao1@Edk2>
Wed, 25 Nov 2015 04:23:01 +0000 (04:23 +0000)
commitfe5f19494353421d3382f32f31a627e09724bbb2
treef3536ae22a9e6e0d215b1b6e01e4d2eb1b9d6991
parent02f02b16e268d4e62676b69d2eaedf18e792d002
Eliminate EFI_IMAGE_MACHINE_TYPE_SUPPORTED.

Move Gdt initialization from InitializeMpServiceData() to CPU Arch specific function.
We create SmmFuncsArch.c for hold CPU specific function, so that
EFI_IMAGE_MACHINE_TYPE_SUPPORTED(EFI_IMAGE_MACHINE_X64) can be removed.

For IA32 version, we always allocate new page for GDT entry, for easy maintenance.
For X64 version, we fixed TssBase in GDT entry to make sure TSS data is correct.
Remove TSS fixup for GDT in ASM file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Fan, Jeff" <jeff.fan@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18937 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmFuncsArch.c [new file with mode: 0644]
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmFuncsArch.c [new file with mode: 0644]