[PATCH v1 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode.

Li, Zhihao

From: Zhihao Li <zhihao.li@...>

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4083

In CPU relaxed mode, it doesn't reset the value of
mSmmMpSyncData->AllApArrivedWithException when BSP exit smm mode.
So this patch will reset this variable.

Cc: Eric Dong <eric.dong@...>
Cc: Ray Ni <ray.ni@...>

Signed-off-by: Zhihao Li <zhihao.li@...>
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxe=
index 13c2cb8da4c3..c79da418e37c 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
@@ -696,8 +696,9 @@ BSPHandler (
// Allow APs to check in from this point on=0D
- *mSmmMpSyncData->Counter =3D 0;=0D
- *mSmmMpSyncData->AllCpusInSync =3D FALSE;=0D
+ *mSmmMpSyncData->Counter =3D 0;=0D
+ *mSmmMpSyncData->AllCpusInSync =3D FALSE;=0D
+ mSmmMpSyncData->AllApArrivedWithException =3D FALSE;=0D

Join {devel@edk2.groups.io to automatically receive all group messages.