summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-07-11 19:52:00 +0800
committerJeff Fan <jeff.fan@intel.com>2016-07-14 09:44:04 +0800
commit6d98a371593cbeee89001182a50f144f074893e2 (patch)
treee9dcc5101b3e6438af5e733fe481984c1d11b30f /UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
parent9c3d2f9a2985d97961b07ddc493b6e406ace8814 (diff)
downloadedk2-6d98a371593cbeee89001182a50f144f074893e2.zip
edk2-6d98a371593cbeee89001182a50f144f074893e2.tar.gz
edk2-6d98a371593cbeee89001182a50f144f074893e2.tar.bz2
UefiCpuPkg/CpuMpPei: Remove un-used variables and functions
Cc: Feng Tian <feng.tian@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Giri Mudusuru <giri.p.mudusuru@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm')
-rw-r--r--UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm26
1 files changed, 0 insertions, 26 deletions
diff --git a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
index f018c3b..03e0092 100644
--- a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
+++ b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
@@ -288,30 +288,4 @@ OtherLoaded:
ret
AsmExchangeRole ENDP
-AsmInitializeGdt PROC
- push rbp
- mov rbp, rsp
-
- lgdt fword PTR [rcx] ; update the GDTR
-
- sub rsp, 0x10
- lea rax, SetCodeSelectorFarJump
- mov [rsp], rax
- mov rdx, LONG_MODE_CS
- mov [rsp + 4], dx ; get new CS
- jmp fword ptr [rsp]
-SetCodeSelectorFarJump:
- add rsp, 0x10
-
- mov rax, LONG_MODE_DS ; get new DS
- mov ds, ax
- mov es, ax
- mov fs, ax
- mov gs, ax
- mov ss, ax
-
- pop rbp
- ret
-AsmInitializeGdt ENDP
-
END