mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: Fix invalid InitializeMpSyncData call
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4338 No need call InitializeMpSyncData during normal boot SMI init, because mSmmMpSyncData is NULL at that time. mSmmMpSyncData is allocated in InitializeMpServiceData, which is invoked after normal boot SMI init (SmmRelocateBases). Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Zeng Star <star.zeng@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ray Ni <ray.ni@Intel.com>
This commit is contained in:
parent
5a0932b7d4
commit
cb4820b6c1
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Agent Module to load other modules to deploy SMM Entry Vector for X86 CPU.
|
Agent Module to load other modules to deploy SMM Entry Vector for X86 CPU.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.<BR>
|
||||||
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
|
Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
@ -371,9 +371,7 @@ SmmInitHandler (
|
||||||
// Check XD and BTS features on each processor on normal boot
|
// Check XD and BTS features on each processor on normal boot
|
||||||
//
|
//
|
||||||
CheckFeatureSupported ();
|
CheckFeatureSupported ();
|
||||||
}
|
} else if (mIsBsp) {
|
||||||
|
|
||||||
if (mIsBsp) {
|
|
||||||
//
|
//
|
||||||
// BSP rebase is already done above.
|
// BSP rebase is already done above.
|
||||||
// Initialize private data during S3 resume
|
// Initialize private data during S3 resume
|
||||||
|
|
Loading…
Reference in New Issue