summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2015-11-25 04:23:01 +0000
committerjyao1 <jyao1@Edk2>2015-11-25 04:23:01 +0000
commitfe5f19494353421d3382f32f31a627e09724bbb2 (patch)
treef3536ae22a9e6e0d215b1b6e01e4d2eb1b9d6991 /UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
parent02f02b16e268d4e62676b69d2eaedf18e792d002 (diff)
downloadedk2-platforms-fe5f19494353421d3382f32f31a627e09724bbb2.tar.xz
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
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm8
1 files changed, 0 insertions, 8 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
index c556bf5f5b..4d53db5b00 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
@@ -124,14 +124,6 @@ gSmiCr3 DD ?
sgdt fword ptr [rsp]
mov eax, [rsp + 2] ; eax = GDT base
add esp, 8
- mov edx, eax
- add edx, GDT_SIZE
- mov [rax + TSS_SEGMENT + 2], dl
- mov [rax + TSS_SEGMENT + 3], dh
- DB 0c1h, 0eah, 10h ; shr edx, 16
- mov [rax + TSS_SEGMENT + 4], dl
- mov [rax + TSS_SEGMENT + 7], dh
- mov edx, eax
mov dl, 89h
mov [rax + TSS_SEGMENT + 5], dl ; clear busy flag
mov eax, TSS_SEGMENT