]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/ArmJunoLib: use declared PPI rather than module local var
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 14 Dec 2015 13:00:03 +0000 (13:00 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Mon, 14 Dec 2015 13:00:03 +0000 (13:00 +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@19240 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/ArmJunoPkg/Library/ArmJunoLib/ArmJuno.c
ArmPlatformPkg/ArmJunoPkg/Library/ArmJunoLib/ArmJunoLib.inf

index 3be26d3ed0ac983470ac6bb85605aacc58ef1a91..ffff5628247f61f4c2f31d3b9f7763b24f10641d 100644 (file)
@@ -140,14 +140,12 @@ PrePeiCoreGetMpCoreInfo (
   return EFI_SUCCESS;\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 092b606b2419f2c90dd6890ea80f599748e38087..530bb1cb9dc0655f8768fe22e932bdac5918963f 100644 (file)
@@ -62,3 +62,6 @@
   gArmPlatformTokenSpaceGuid.PcdPciMmio32Size\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio64Base\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio64Size\r
+\r
+[Ppis]\r
+  gArmMpCoreInfoPpiGuid\r