mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
UefiCpuPkg/PiSmmCpuDxeSmm: Move GetAcpiS3EnableFlag into DxeSmm code
MM can not use the dynamic PCD, so, Move GetAcpiS3EnableFlag into DxeSmm code. This can make PiSmmCpuEntryCommon to be a function for SMM and MM. Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Dun Tan <dun.tan@intel.com> Cc: Hongbin1 Zhang <hongbin1.zhang@intel.com> Cc: Wei6 Xu <wei6.xu@intel.com> Cc: Yuanhao Xie <yuanhao.xie@intel.com>
This commit is contained in:
parent
5547d1487c
commit
23c5ee6e23
@ -248,15 +248,3 @@ InitSmmS3ResumeState (
|
||||
InitSmmS3Cr3 ((UINTN *)&SmmS3ResumeState->SmmS3Cr3);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Get ACPI S3 enable flag.
|
||||
|
||||
**/
|
||||
VOID
|
||||
GetAcpiS3EnableFlag (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
mAcpiS3Enable = PcdGetBool (PcdAcpiS3Enable);
|
||||
}
|
||||
|
@ -269,6 +269,7 @@ extern UINT8 mSmmSaveStateRegisterLma;
|
||||
|
||||
extern BOOLEAN mBtsSupported;
|
||||
extern UINTN mMsrDsAreaSize;
|
||||
extern BOOLEAN mAcpiS3Enable;
|
||||
|
||||
#define PAGE_TABLE_POOL_ALIGNMENT BASE_128KB
|
||||
#define PAGE_TABLE_POOL_UNIT_SIZE BASE_128KB
|
||||
|
@ -11,6 +11,18 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
#include "PiSmmCpuCommon.h"
|
||||
|
||||
/**
|
||||
Get ACPI S3 enable flag.
|
||||
|
||||
**/
|
||||
VOID
|
||||
GetAcpiS3EnableFlag (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
mAcpiS3Enable = PcdGetBool (PcdAcpiS3Enable);
|
||||
}
|
||||
|
||||
/**
|
||||
Extract NumberOfCpus, MaxNumberOfCpus and EFI_PROCESSOR_INFORMATION for all CPU from gEfiMpServiceProtocolGuid.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user