X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FPiSmmCpuDxeSmm%2FX64%2FSmiException.nasm;h=bc8d95d8dc99e6edaa5aea563921d887e844174c;hp=821ee182b6f94c74de6a951bfb25db49577ccfd9;hb=717fb60443fb;hpb=28b020b5de1e1bee4a44e2536f71fc96c781863c diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.nasm b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.nasm index 821ee182b6..bc8d95d8dc 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.nasm @@ -145,25 +145,8 @@ ASM_PFX(gcSmiGdtr): DQ NullSeg ASM_PFX(gcSmiIdtr): - DW IDT_SIZE - 1 - DQ _SmiIDT - -; -; Here is the IDT. There are 32 (not 255) entries in it since only processor -; generated exceptions will be handled. -; -_SmiIDT: -%rep 32 - DW 0 ; 0:15 - DW CODE_SEL ; Segment selector - DB 0 ; Unused - DB 0x8e ; Interrupt Gate, Present - DW 0 ; 16:31 - DQ 0 ; 32:63 -%endrep -_SmiIDTEnd: - -IDT_SIZE equ _SmiIDTEnd - _SmiIDT + DW 0 + DQ 0 DEFAULT REL SECTION .text @@ -400,13 +383,3 @@ ASM_PFX(PageFaultIdtHandlerSmmProfile): add rsp, 16 ; skip INT# & ErrCode iretq -global ASM_PFX(InitializeIDTSmmStackGuard) -ASM_PFX(InitializeIDTSmmStackGuard): -; -; If SMM Stack Guard feature is enabled, set the IST field of -; the interrupt gate for Page Fault Exception to be 1 -; - lea rax, [_SmiIDT + 14 * 16] - mov byte [rax + 4], 1 - ret -