mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
UefiCpuPkg: Remove code to load mtrr setting
Remove code to load mtrr setting in CpuS3.c. In previous commits, before transferring to CpuS3.c, MTRR setting has been loaded in S3RestoreConfig2() for all CPU. 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:
parent
ad245ffeff
commit
db4101c308
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Code for Processor S3 restoration
|
||||
|
||||
Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@ -91,36 +91,6 @@ UINT8 mApHltLoopCodeTemplate[] = {
|
||||
0xEB, 0xFC // jmp $-2
|
||||
};
|
||||
|
||||
/**
|
||||
Sync up the MTRR values for all processors.
|
||||
|
||||
@param MtrrTable Table holding fixed/variable MTRR values to be loaded.
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
LoadMtrrData (
|
||||
EFI_PHYSICAL_ADDRESS MtrrTable
|
||||
)
|
||||
|
||||
/*++
|
||||
|
||||
Routine Description:
|
||||
|
||||
Sync up the MTRR values for all processors.
|
||||
|
||||
Arguments:
|
||||
|
||||
Returns:
|
||||
None
|
||||
|
||||
--*/
|
||||
{
|
||||
MTRR_SETTINGS *MtrrSettings;
|
||||
|
||||
MtrrSettings = (MTRR_SETTINGS *)(UINTN)MtrrTable;
|
||||
MtrrSetAllMtrrs (MtrrSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
Increment semaphore by 1.
|
||||
|
||||
@ -554,8 +524,6 @@ InitializeCpuBeforeRebase (
|
||||
IN BOOLEAN IsBsp
|
||||
)
|
||||
{
|
||||
LoadMtrrData (mAcpiCpuData.MtrrTable);
|
||||
|
||||
SetRegister (TRUE);
|
||||
|
||||
ProgramVirtualWireMode ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user