Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 3ed9aceeb8e6b1175403b42ef3f97a2547e93c89
      
https://github.com/tianocore/edk2/commit/3ed9aceeb8e6b1175403b42ef3f97a2547e93c89
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M MdeModulePkg/Include/Library/CpuExceptionHandlerLib.h

  Log Message:
  -----------
  MdeModulePkg: CpuExceptionHandlerLib: Define X86_CPU_INTERRUPT_NUM

There are currently many definitions for the number of interrupts
for X86 processors. Centralize this definition in
CpuExceptionHandlerLib.

Signed-off-by: Oliver Smith-Denny <[email protected]>


  Commit: 3454d7ab417b3dcfa2b631a56b72833477bc8e6b
      
https://github.com/tianocore/edk2/commit/3454d7ab417b3dcfa2b631a56b72833477bc8e6b
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M UefiCpuPkg/CpuDxe/CpuDxe.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandler.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/CpuExceptionHandlerTest.h
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/DxeCpuExceptionHandlerUnitTest.c
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/UnitTest/PeiCpuExceptionHandlerUnitTest.c
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/SecPeiExceptionHandlerAsm.nasm
    M UefiCpuPkg/Library/SmmRelocationLib/SmmRelocationLib.c
    M UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
    M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuCommon.c
    M UefiCpuPkg/SecCore/SecMain.c

  Log Message:
  -----------
  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 <[email protected]>


  Commit: 4512733ac8b3612816675a7f717dab9101f0e7a6
      
https://github.com/tianocore/edk2/commit/4512733ac8b3612816675a7f717dab9101f0e7a6
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M MdeModulePkg/Core/DxeIplPeim/DxeIpl.h
    M MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c

  Log Message:
  -----------
  MdeModulePkg: DxeIpl IA32: Use 256 IDT Entries

When IA32 DxeIpl is setting up the IDT, it should populate
256 entries, the architectural size, so that exceptions are
handled in a defined way, going to the common exception handler.
This includes the stack cookie exception.

Signed-off-by: Oliver Smith-Denny <[email protected]>


  Commit: 3bfe4fadffbf3339986d9876d89c28bc0542baac
      
https://github.com/tianocore/edk2/commit/3bfe4fadffbf3339986d9876d89c28bc0542baac
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M OvmfPkg/Library/SmmRelocationLib/SmmRelocationLib.c
    M OvmfPkg/Sec/SecMain.c

  Log Message:
  -----------
  OvmfPkg: SEC/SMM: Use 256 IDT Descriptors

This follows the update in UefiCpuPkg to use
256 IDT descriptors in SEC and SMM. This is
done to:
- Have a defined action when exceptions are
taken (use the common exception handler)
- Allow processing the stack cookie exception
gracefully instead of generating a #GP fault.

Signed-off-by: Oliver Smith-Denny <[email protected]>


  Commit: 582ab2ec659207efc87967e21eb7dd1461e74ba4
      
https://github.com/tianocore/edk2/commit/582ab2ec659207efc87967e21eb7dd1461e74ba4
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
    R 
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/SecPeiExceptionHandlerAsm.nasm

  Log Message:
  -----------
  UefiCpuPkg: Converge SEC/PEI and SMM/DXE Exception Handler ASM

Now that the SEC/PEI asm is doing 256 IDT descriptors, the only
differences are CET and XCODE support between it and the
SMM/DXE version of the assembly.

This commit merges the two files into one. XCODE support must be
handled differently between the two because in SEC/PEI we have
completely R+X images, so we can execute from the data section.
In SMM/DXE we do not have executable .data sections, but we do
have writeable .text sections (initially), so this code patches
up the .text section. This is the same behavior as before, only
merged into a single file.

Signed-off-by: Oliver Smith-Denny <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/3657a4fc9f80...582ab2ec6592

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to