edk2/UefiCpuPkg/Library/SmmRelocationLib
Oliver Smith-Denny 3454d7ab41 UefiCpuPkg: Set up 256 IDT Descs in SEC/PEI/SMM
Currently, SEC, PEI, and SMM only set up 32 - 34 IDT
descs. This means that any exceptions received above
that number will cause a #GP fault.

This commit updates these environments to follow DXE
and set up the IDT with the architecturally defined
256 entries, each of which point to the common
exception handler.

This does two things:
- Has well defined behavior for receiving exceptions in
  these environments instead of relying on a #GP fault to
  occur.
- Allows the stack cookie interrupt (0x42) to be routed
  correctly instead of appearing as a #GP fault.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2026-03-07 03:58:40 +00:00
..
Ia32 UefiCpuPkg/SmmRelocationLib: Remove unnecessary CpuIndex 2024-05-08 01:53:58 +00:00
X64 UefiCpuPkg/SmmRelocationLib: Remove unnecessary CpuIndex 2024-05-08 01:53:58 +00:00
AmdSmmRelocationLib.inf UefiCpuPkg/SmmRelocationLib: Add library instance for AMD 2024-05-08 01:53:58 +00:00
AmdSmramSaveStateConfig.c UefiCpuPkg: Use public Architectural MSRs from MdePkg 2024-11-12 01:07:12 +00:00
InternalSmmRelocationLib.h UefiCpuPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SmmRelocationLib.c UefiCpuPkg: Set up 256 IDT Descs in SEC/PEI/SMM 2026-03-07 03:58:40 +00:00
SmmRelocationLib.inf UefiCpuPkg/SmmRelocationLib: Add SmmRelocationLib library instance 2024-05-08 01:53:58 +00:00
SmramSaveStateConfig.c UefiCpuPkg: Use public Architectural MSRs from MdePkg 2024-11-12 01:07:12 +00:00