X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FPiSmmCpuDxeSmm%2FX64%2FSmiEntry.nasm;fp=UefiCpuPkg%2FPiSmmCpuDxeSmm%2FX64%2FSmiEntry.nasm;h=741e4b7da2bd1061cd9b3bbae350aeeb22f24f48;hp=271492a9d7220b13c8de2b329e2788a60da26ac3;hb=4e78c7bebb2c30cab0afa193a4eeb0ef05ca9a12;hpb=f044a7d8ff7b21a81e98182b1fea8e3ae97fc3a8 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm index 271492a9d7..741e4b7da2 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm @@ -69,7 +69,6 @@ extern ASM_PFX(mXdSupported) global ASM_PFX(gPatchXdSupported) global ASM_PFX(gPatchSmiStack) global ASM_PFX(gPatchSmiCr3) -global ASM_PFX(gPatch5LevelPagingSupport) global ASM_PFX(gcSmiHandlerTemplate) global ASM_PFX(gcSmiHandlerSize) @@ -125,17 +124,6 @@ ProtFlatMode: ASM_PFX(gPatchSmiCr3): mov cr3, rax mov eax, 0x668 ; as cr4.PGE is not set here, refresh cr3 - - mov cl, strict byte 0 ; source operand will be patched -ASM_PFX(gPatch5LevelPagingSupport): - cmp cl, 0 - je SkipEnable5LevelPaging - ; - ; Enable 5-Level Paging bit - ; - bts eax, 12 ; Set LA57 bit (bit #12) -SkipEnable5LevelPaging: - mov cr4, rax ; in PreModifyMtrrs() to flush TLB. ; Load TSS sub esp, 8 ; reserve room in stack