Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: b3441e01003ab91df816263df98f9675b2cd2aa1
https://github.com/tianocore/edk2/commit/b3441e01003ab91df816263df98f9675b2cd2aa1
Author: Jason1 Lin <[email protected]>
Date: 2024-07-17 (Wed, 17 Jul 2024)
Changed paths:
M MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
Log Message:
-----------
MdeModulePkg/Core/DxeIplPeim: Enhance Code in DxeIplFindDxeCore Function
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4653
In DxeIplFindDxeCore function, there exists different behavior between
Debug and Release built BIOS. This change is used to unify both of
the code flow and fix the potential overflow of "Instance" variable.
In this change,
[1] Move the ASSERT_EFI_ERROR (Status) in failure to find DxeCore
in any firmware volume condition.
[2] Break the while-loop when not found required DxeCore.
This would make the Instance variable not overflow in while-loop.
[3] Add the CpuDeadLoop () in the end of the function and do not
return since DxeCore is mandatory for the following booting
to hand-off the PEI phase to DXE phase.
[4] In case of the CpuDeadLoop () is de-assert by debugger,
return the NULL pointer.
Signed-off-by: Jason1 Lin <[email protected]>
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