edk2/IntelFsp2Pkg
Ray Ni ff25439600 IntelFsp2Pkg/FspSecCore: Do not hang when bootloader IDT is larger
The current logic in FspSecCore is when the size of IDT created
by the bootloader is larger than the size of IDT that's going to be created
by FSP, CpuDeadLoop() is hit.

Change PcdFspMaxInterruptSupported from 34 to 255 to avoid such case.

Even when the PCD is overriden to a small value, the dead-loop is
not necessary. The patch updates the logic to only copy
the first part of the IDT entries when bootloader's IDT is larger.
A warn is printed in the debug log when such case happens.

The change addresses a boot hang in FSP API mode introduced by
commit 3454d7ab41.

Signed-off-by: Ray Ni <ray.ni@intel.com>
2026-03-19 05:40:01 +00:00
..
FspNotifyPhase IntelFsp2Pkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
FspSecCore IntelFsp2Pkg/FspSecCore: Do not hang when bootloader IDT is larger 2026-03-19 05:40:01 +00:00
Include IntelFsp2Pkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Library IntelFsp2Pkg: Save/restore FSBASE/GSBASE in entry and exit 2026-03-09 16:21:26 +00:00
Tools IntelFsp2Pkg: Remove GCC48/49/5 build options from QemuFspPkg.dsc 2026-02-26 15:30:52 +00:00
IntelFsp2Pkg.ci.yaml IntelFsp2Pkg: CI: Add PrEval entry 2023-10-23 20:17:52 +00:00
IntelFsp2Pkg.dec IntelFsp2Pkg/FspSecCore: Do not hang when bootloader IDT is larger 2026-03-19 05:40:01 +00:00
IntelFsp2Pkg.dsc MdePkg: MdeLibs.dsc.inc: Apply StackCheckLibNull to All Module Types 2024-11-13 21:01:46 +00:00
Readme.md IntelFsp2Pkg: Convert files to CRLF line ending 2017-04-06 15:42:56 +08:00