edk2/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
Jared Pan 02fa0cb911 MdeModulePkg/ReportStatusCodeRouter: Prevent recursive entry in PEI phase
Prevent recursive invocation of the PEI Report Status Code (RSC) Router that can lead
to system hang or unexpected re-entrancy behavior during early boot. The defect
was observed when PEI modules reported status codes while the router was already
processing a previous request.

This patch aligns PEI behavior with the robust RSC routing mechanisms already used
in DXE and Runtime phases by adding a lightweight recursion guard to the PEI router.
This ensures consistent behavior across boot stages and improves early-boot
stability.

Signed-off-by: Jared Pan <jared.pan@dell.com>
2026-06-17 04:11:15 +00:00

56 lines
1.4 KiB
INI

## @file
# Report Status Code Router PEIM which produces Report Stataus Code Handler PPI and Status Code PPI.
#
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = ReportStatusCodeRouterPei
MODULE_UNI_FILE = ReportStatusCodeRouterPei.uni
FILE_GUID = A3610442-E69F-4DF3-82CA-2360C4031A23
MODULE_TYPE = PEIM
VERSION_STRING = 1.0
ENTRY_POINT = GenericStatusCodePeiEntry
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 EBC (EBC is only for build)
#
[Sources]
ReportStatusCodeRouterPei.c
ReportStatusCodeRouterPei.h
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
PeimEntryPoint
PeiServicesLib
DebugLib
HobLib
SynchronizationLib
[Guids]
## PRODUCES ## HOB
## CONSUMES ## HOB
gStatusCodeCallbackGuid
[Ppis]
gEfiPeiRscHandlerPpiGuid ## PRODUCES
gEfiPeiStatusCodePpiGuid ## PRODUCES
[Depex]
TRUE
[UserExtensions.TianoCore."ExtraFiles"]
ReportStatusCodeRouterPeiExtra.uni