summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm
diff options
context:
space:
mode:
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 f018c3bb09..03e00924fb 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