UefiCpuPkg: Remove redundant library classes, Ppis and GUIDs

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>
This commit is contained in:
shenglei 2018-09-18 16:28:13 +08:00 committed by Eric Dong
parent a8beaf8f90
commit 997731e796
9 changed files with 1 additions and 25 deletions

View File

@ -16,17 +16,10 @@
#include <Base.h> #include <Base.h>
#include <Uefi.h> #include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/CpuLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/PeCoffGetEntryPointLib.h> #include <Library/PeCoffGetEntryPointLib.h>
#include <Library/SerialPortLib.h> #include <Library/SerialPortLib.h>
#include <Library/SynchronizationLib.h> #include <Library/SynchronizationLib.h>
#include <Library/PrintLib.h> #include <Library/PrintLib.h>
#include <Protocol/MpService.h>
#include <Protocol/SmmBase2.h> #include <Protocol/SmmBase2.h>
#include <Register/Cpuid.h> #include <Register/Cpuid.h>
#include <Register/Msr.h> #include <Register/Msr.h>

View File

@ -38,7 +38,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h> #include <Library/BaseMemoryLib.h>
#include <Library/PcdLib.h> #include <Library/PcdLib.h>
#include <Library/CacheMaintenanceLib.h>
#include <Library/MtrrLib.h> #include <Library/MtrrLib.h>
#include <Library/SmmCpuPlatformHookLib.h> #include <Library/SmmCpuPlatformHookLib.h>
#include <Library/SmmServicesTableLib.h> #include <Library/SmmServicesTableLib.h>

View File

@ -77,7 +77,6 @@
[LibraryClasses] [LibraryClasses]
UefiDriverEntryPoint UefiDriverEntryPoint
UefiRuntimeServicesTableLib UefiRuntimeServicesTableLib
CacheMaintenanceLib
PcdLib PcdLib
DebugLib DebugLib
BaseLib BaseLib
@ -113,7 +112,6 @@
[Guids] [Guids]
gEfiAcpiVariableGuid ## SOMETIMES_CONSUMES ## HOB # it is used for S3 boot. gEfiAcpiVariableGuid ## SOMETIMES_CONSUMES ## HOB # it is used for S3 boot.
gEfiGlobalVariableGuid ## SOMETIMES_PRODUCES ## Variable:L"SmmProfileData"
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEdkiiPiSmmMemoryAttributesTableGuid ## CONSUMES ## SystemTable gEdkiiPiSmmMemoryAttributesTableGuid ## CONSUMES ## SystemTable

View File

@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef _SMM_PROFILE_INTERNAL_H_ #ifndef _SMM_PROFILE_INTERNAL_H_
#define _SMM_PROFILE_INTERNAL_H_ #define _SMM_PROFILE_INTERNAL_H_
#include <Guid/GlobalVariable.h>
#include <Guid/Acpi.h> #include <Guid/Acpi.h>
#include <Protocol/SmmReadyToLock.h> #include <Protocol/SmmReadyToLock.h>
#include <Library/UefiRuntimeServicesTableLib.h> #include <Library/UefiRuntimeServicesTableLib.h>

View File

@ -13,8 +13,6 @@
**/ **/
#include <PiPei.h> #include <PiPei.h>
#include <Library/BaseLib.h>
#include <Library/PeCoffGetEntryPointLib.h>
#include "SecMain.h" #include "SecMain.h"

View File

@ -50,7 +50,6 @@
[LibraryClasses] [LibraryClasses]
BaseMemoryLib BaseMemoryLib
DebugLib DebugLib
BaseLib
PlatformSecLib PlatformSecLib
PcdLib PcdLib
DebugAgentLib DebugAgentLib
@ -71,9 +70,6 @@
## SOMETIMES_PRODUCES ## SOMETIMES_PRODUCES
gEfiSecPlatformInformation2PpiGuid gEfiSecPlatformInformation2PpiGuid
gEfiTemporaryRamDonePpiGuid ## PRODUCES gEfiTemporaryRamDonePpiGuid ## PRODUCES
## NOTIFY
## SOMETIMES_CONSUMES
gPeiSecPerformancePpiGuid
[Guids] [Guids]
## SOMETIMES_PRODUCES ## HOB ## SOMETIMES_PRODUCES ## HOB

View File

@ -17,14 +17,12 @@
#include <PiPei.h> #include <PiPei.h>
#include <Ppi/SecPlatformInformation.h>
#include <Ppi/SecPlatformInformation2.h> #include <Ppi/SecPlatformInformation2.h>
#include <Ppi/TemporaryRamDone.h> #include <Ppi/TemporaryRamDone.h>
#include <Ppi/SecPerformance.h> #include <Ppi/SecPerformance.h>
#include <Guid/FirmwarePerformance.h> #include <Guid/FirmwarePerformance.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/PcdLib.h> #include <Library/PcdLib.h>
#include <Library/BaseMemoryLib.h> #include <Library/BaseMemoryLib.h>

View File

@ -25,7 +25,6 @@
#include <Guid/ExtendedFirmwarePerformance.h> #include <Guid/ExtendedFirmwarePerformance.h>
#include <Guid/EndOfS3Resume.h> #include <Guid/EndOfS3Resume.h>
#include <Guid/S3SmmInitDone.h> #include <Guid/S3SmmInitDone.h>
#include <Ppi/ReadOnlyVariable2.h>
#include <Ppi/S3Resume2.h> #include <Ppi/S3Resume2.h>
#include <Ppi/SmmAccess.h> #include <Ppi/SmmAccess.h>
#include <Ppi/PostBootScriptTable.h> #include <Ppi/PostBootScriptTable.h>
@ -34,7 +33,6 @@
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/TimerLib.h>
#include <Library/PeimEntryPoint.h> #include <Library/PeimEntryPoint.h>
#include <Library/PeiServicesLib.h> #include <Library/PeiServicesLib.h>
#include <Library/HobLib.h> #include <Library/HobLib.h>
@ -47,7 +45,7 @@
#include <Library/DebugAgentLib.h> #include <Library/DebugAgentLib.h>
#include <Library/LocalApicLib.h> #include <Library/LocalApicLib.h>
#include <Library/ReportStatusCodeLib.h> #include <Library/ReportStatusCodeLib.h>
#include <Library/PrintLib.h>
#include <Library/HobLib.h> #include <Library/HobLib.h>
#include <Library/LockBoxLib.h> #include <Library/LockBoxLib.h>
#include <IndustryStandard/Acpi.h> #include <IndustryStandard/Acpi.h>

View File

@ -53,7 +53,6 @@
HobLib HobLib
PeiServicesLib PeiServicesLib
PeimEntryPoint PeimEntryPoint
TimerLib
BaseLib BaseLib
DebugLib DebugLib
PcdLib PcdLib
@ -64,7 +63,6 @@
LocalApicLib LocalApicLib
ReportStatusCodeLib ReportStatusCodeLib
LockBoxLib LockBoxLib
PrintLib
[Guids] [Guids]
gEfiBootScriptExecutorVariableGuid ## SOMETIMES_CONSUMES ## UNDEFINED # LockBox gEfiBootScriptExecutorVariableGuid ## SOMETIMES_CONSUMES ## UNDEFINED # LockBox
@ -79,7 +77,6 @@
gEdkiiS3SmmInitDoneGuid gEdkiiS3SmmInitDoneGuid
[Ppis] [Ppis]
gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMES
gEfiPeiS3Resume2PpiGuid ## PRODUCES gEfiPeiS3Resume2PpiGuid ## PRODUCES
gPeiSmmAccessPpiGuid ## SOMETIMES_CONSUMES gPeiSmmAccessPpiGuid ## SOMETIMES_CONSUMES
gPeiPostScriptTablePpiGuid ## SOMETIMES_PRODUCES gPeiPostScriptTablePpiGuid ## SOMETIMES_PRODUCES