Some redundant library classes Ppis and GUIDs
have been removed in inf, .c and .h files.
v2:
1.Remove ReadOnlyVariable2.h in S3Resume.c which should be
deleted in last version in which gEfiPeiReadOnlyVariable2PpiGuid
was removed.
2.Remove the library class BaseLib in CpuPageTable.c
which is included elsewhere.
3.Add library classes in SecCore.inf which are removed
at last version.
They are DebugAgentLib and CpuExceptionHandlerLib.
4.Add two Ppis in SecCore.inf which are removed
at last version.
They are gEfiSecPlatformInformationPpiGuid and
gEfiSecPlatformInformation2PpiGuid.
https://bugzilla.tianocore.org/show_bug.cgi?id=1043
https://bugzilla.tianocore.org/show_bug.cgi?id=1013
https://bugzilla.tianocore.org/show_bug.cgi?id=1032
https://bugzilla.tianocore.org/show_bug.cgi?id=1016
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
\r
#include <Base.h>\r
#include <Uefi.h>\r
\r
#include <Base.h>\r
#include <Uefi.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/CpuLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
#include <Library/SerialPortLib.h>\r
#include <Library/SynchronizationLib.h>\r
#include <Library/PrintLib.h>\r
#include <Library/PeCoffGetEntryPointLib.h>\r
#include <Library/SerialPortLib.h>\r
#include <Library/SynchronizationLib.h>\r
#include <Library/PrintLib.h>\r
-#include <Protocol/MpService.h>\r
#include <Protocol/SmmBase2.h>\r
#include <Register/Cpuid.h>\r
#include <Register/Msr.h>\r
#include <Protocol/SmmBase2.h>\r
#include <Register/Cpuid.h>\r
#include <Register/Msr.h>\r
#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/PcdLib.h>\r
-#include <Library/CacheMaintenanceLib.h>\r
#include <Library/MtrrLib.h>\r
#include <Library/SmmCpuPlatformHookLib.h>\r
#include <Library/SmmServicesTableLib.h>\r
#include <Library/MtrrLib.h>\r
#include <Library/SmmCpuPlatformHookLib.h>\r
#include <Library/SmmServicesTableLib.h>\r
[LibraryClasses]\r
UefiDriverEntryPoint\r
UefiRuntimeServicesTableLib\r
[LibraryClasses]\r
UefiDriverEntryPoint\r
UefiRuntimeServicesTableLib\r
PcdLib\r
DebugLib\r
BaseLib\r
PcdLib\r
DebugLib\r
BaseLib\r
\r
[Guids]\r
gEfiAcpiVariableGuid ## SOMETIMES_CONSUMES ## HOB # it is used for S3 boot.\r
\r
[Guids]\r
gEfiAcpiVariableGuid ## SOMETIMES_CONSUMES ## HOB # it is used for S3 boot.\r
- gEfiGlobalVariableGuid ## SOMETIMES_PRODUCES ## Variable:L"SmmProfileData"\r
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEdkiiPiSmmMemoryAttributesTableGuid ## CONSUMES ## SystemTable\r
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable\r
gEdkiiPiSmmMemoryAttributesTableGuid ## CONSUMES ## SystemTable\r
#ifndef _SMM_PROFILE_INTERNAL_H_\r
#define _SMM_PROFILE_INTERNAL_H_\r
\r
#ifndef _SMM_PROFILE_INTERNAL_H_\r
#define _SMM_PROFILE_INTERNAL_H_\r
\r
-#include <Guid/GlobalVariable.h>\r
#include <Guid/Acpi.h>\r
#include <Protocol/SmmReadyToLock.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
#include <Guid/Acpi.h>\r
#include <Protocol/SmmReadyToLock.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
**/\r
\r
#include <PiPei.h>\r
**/\r
\r
#include <PiPei.h>\r
-#include <Library/BaseLib.h>\r
-#include <Library/PeCoffGetEntryPointLib.h>\r
\r
#include "SecMain.h"\r
\r
\r
#include "SecMain.h"\r
\r
[LibraryClasses]\r
BaseMemoryLib\r
DebugLib\r
[LibraryClasses]\r
BaseMemoryLib\r
DebugLib\r
PlatformSecLib\r
PcdLib\r
DebugAgentLib\r
PlatformSecLib\r
PcdLib\r
DebugAgentLib\r
## SOMETIMES_PRODUCES\r
gEfiSecPlatformInformation2PpiGuid\r
gEfiTemporaryRamDonePpiGuid ## PRODUCES\r
## SOMETIMES_PRODUCES\r
gEfiSecPlatformInformation2PpiGuid\r
gEfiTemporaryRamDonePpiGuid ## PRODUCES\r
- ## NOTIFY\r
- ## SOMETIMES_CONSUMES\r
- gPeiSecPerformancePpiGuid\r
\r
[Guids]\r
## SOMETIMES_PRODUCES ## HOB\r
\r
[Guids]\r
## SOMETIMES_PRODUCES ## HOB\r
\r
#include <PiPei.h>\r
\r
\r
#include <PiPei.h>\r
\r
-#include <Ppi/SecPlatformInformation.h>\r
#include <Ppi/SecPlatformInformation2.h>\r
#include <Ppi/TemporaryRamDone.h>\r
#include <Ppi/SecPerformance.h>\r
\r
#include <Guid/FirmwarePerformance.h>\r
\r
#include <Ppi/SecPlatformInformation2.h>\r
#include <Ppi/TemporaryRamDone.h>\r
#include <Ppi/SecPerformance.h>\r
\r
#include <Guid/FirmwarePerformance.h>\r
\r
-#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Guid/ExtendedFirmwarePerformance.h>\r
#include <Guid/EndOfS3Resume.h>\r
#include <Guid/S3SmmInitDone.h>\r
#include <Guid/ExtendedFirmwarePerformance.h>\r
#include <Guid/EndOfS3Resume.h>\r
#include <Guid/S3SmmInitDone.h>\r
-#include <Ppi/ReadOnlyVariable2.h>\r
#include <Ppi/S3Resume2.h>\r
#include <Ppi/SmmAccess.h>\r
#include <Ppi/PostBootScriptTable.h>\r
#include <Ppi/S3Resume2.h>\r
#include <Ppi/SmmAccess.h>\r
#include <Ppi/PostBootScriptTable.h>\r
\r
#include <Library/DebugLib.h>\r
#include <Library/BaseLib.h>\r
\r
#include <Library/DebugLib.h>\r
#include <Library/BaseLib.h>\r
-#include <Library/TimerLib.h>\r
#include <Library/PeimEntryPoint.h>\r
#include <Library/PeiServicesLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/PeimEntryPoint.h>\r
#include <Library/PeiServicesLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/LocalApicLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/LocalApicLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
-#include <Library/PrintLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/LockBoxLib.h>\r
#include <IndustryStandard/Acpi.h>\r
#include <Library/HobLib.h>\r
#include <Library/LockBoxLib.h>\r
#include <IndustryStandard/Acpi.h>\r
HobLib\r
PeiServicesLib\r
PeimEntryPoint\r
HobLib\r
PeiServicesLib\r
PeimEntryPoint\r
BaseLib\r
DebugLib\r
PcdLib\r
BaseLib\r
DebugLib\r
PcdLib\r
LocalApicLib\r
ReportStatusCodeLib\r
LockBoxLib\r
LocalApicLib\r
ReportStatusCodeLib\r
LockBoxLib\r
\r
[Guids]\r
gEfiBootScriptExecutorVariableGuid ## SOMETIMES_CONSUMES ## UNDEFINED # LockBox\r
\r
[Guids]\r
gEfiBootScriptExecutorVariableGuid ## SOMETIMES_CONSUMES ## UNDEFINED # LockBox\r
gEdkiiS3SmmInitDoneGuid\r
\r
[Ppis]\r
gEdkiiS3SmmInitDoneGuid\r
\r
[Ppis]\r
- gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMES\r
gEfiPeiS3Resume2PpiGuid ## PRODUCES\r
gPeiSmmAccessPpiGuid ## SOMETIMES_CONSUMES\r
gPeiPostScriptTablePpiGuid ## SOMETIMES_PRODUCES\r
gEfiPeiS3Resume2PpiGuid ## PRODUCES\r
gPeiSmmAccessPpiGuid ## SOMETIMES_CONSUMES\r
gPeiPostScriptTablePpiGuid ## SOMETIMES_PRODUCES\r