UefiCpuPkg: Save MTRR by lockbox in CpuS3DataDxe
Save MTRR by lockbox in CpuS3DataDxe. In S3 boot, The MTRR setting will be restored in S3Resume.c in following patches. Then S3Resume.c will wakeup all APs to load the MTRR setting. This can avoid waking up APs in CpuS3.c. Signed-off-by: Dun Tan <dun.tan@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# support hot plug CPUs. This module can be copied into a CPU specific package
|
||||
# and customized if these additional features are required.
|
||||
#
|
||||
# Copyright (c) 2013-2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2013-2024, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2015, Red Hat, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
@@ -46,9 +46,11 @@
|
||||
BaseLib
|
||||
MtrrLib
|
||||
MemoryAllocationLib
|
||||
LockBoxLib
|
||||
|
||||
[Guids]
|
||||
gEfiEndOfDxeEventGroupGuid ## CONSUMES ## Event
|
||||
gEdkiiS3MtrrSettingGuid
|
||||
|
||||
[Protocols]
|
||||
gEfiMpServiceProtocolGuid ## CONSUMES
|
||||
|
Reference in New Issue
Block a user