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

ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c

index 5ee51a3817576bcd841a3763fc425842f9f92ba3..9b16f7f0c4731ab72bfb1008a073e81842bae82b 100644 (file)
@@ -57,3 +57,6 @@
   gArmTokenSpaceGuid.PcdArmPrimaryCore\r
 \r
   gArmPlatformTokenSpaceGuid.PcdCoreCount\r
+\r
+[Ppis]\r
+  gArmMpCoreInfoPpiGuid\r
index a535ffd792df850ed709adb2351cb8190b9efe91..e659f44ad232f00890f59d22fd71b2036edf2579 100644 (file)
@@ -54,3 +54,6 @@
   gArmTokenSpaceGuid.PcdArmPrimaryCore\r
 \r
   gArmPlatformTokenSpaceGuid.PcdCoreCount\r
+\r
+[Ppis]\r
+  gArmMpCoreInfoPpiGuid\r
index 6ec512bfb709e6091c5a6a4aa9f829d4f9b93081..d8d1c9ac26dd70cedb2d4b7b14927692a2250e6b 100644 (file)
@@ -175,14 +175,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