]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/ArmPlatformLibNull: use declared PPI rather than module local var
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 14 Dec 2015 12:59:52 +0000 (12:59 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 14 Dec 2015 12:59:52 +0000 (12:59 +0000)
We can refer to gArmMpCoreInfoPpiGuid directly if we declare it under
[Ppis] in the library's .inf so there is no need to copy it into a
module local variable.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19239 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.c
ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf

index 0cc1e4a03c143db12eaf5e0385afe6794ca27a0c..f80a276a04d6fa6f35ffb5475cf04ab2b64a7a0c 100644 (file)
@@ -135,14 +135,12 @@ PrePeiCoreGetMpCoreInfo (
   }\r
 }\r
 \r
-// Needs to be declared in the file. Otherwise gArmMpCoreInfoPpiGuid is undefined in the contect of PrePeiCore\r
-EFI_GUID mArmMpCoreInfoPpiGuid = ARM_MP_CORE_INFO_PPI_GUID;\r
 ARM_MP_CORE_INFO_PPI mMpCoreInfoPpi = { PrePeiCoreGetMpCoreInfo };\r
 \r
 EFI_PEI_PPI_DESCRIPTOR      gPlatformPpiTable[] = {\r
   {\r
     EFI_PEI_PPI_DESCRIPTOR_PPI,\r
-    &mArmMpCoreInfoPpiGuid,\r
+    &gArmMpCoreInfoPpiGuid,\r
     &mMpCoreInfoPpi\r
   }\r
 };\r
index 4517ad5102111aba3e73b46e24768244c30a26a5..97b2a4b6e495dcbc2f97d1a8ed31f0ecb9ece957 100644 (file)
@@ -46,3 +46,6 @@
 \r
   gArmTokenSpaceGuid.PcdArmPrimaryCoreMask\r
   gArmTokenSpaceGuid.PcdArmPrimaryCore\r
+\r
+[Ppis]\r
+  gArmMpCoreInfoPpiGuid\r