]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/PlatformPeim: constify EFI_PEI_PPI_DESCRIPTOR globals
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 7 Aug 2015 17:27:33 +0000 (17:27 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Fri, 7 Aug 2015 17:27:33 +0000 (17:27 +0000)
Make global EFI_PEI_PPI_DESCRIPTOR instances CONST to prevent them
from being emitted into the .data section.

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@18189 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/PlatformPei/PlatformPeim.c

index ca47753ebdd6004eb615e95ceddf6d3c72126f6f..58ecb31ec2fc2bba8093c3a7200f16f537a8e77b 100755 (executable)
@@ -50,13 +50,13 @@ PlatformPeim (
 //\r
 // Module globals\r
 //\r
-EFI_PEI_PPI_DESCRIPTOR  mPpiListBootMode = {\r
+CONST EFI_PEI_PPI_DESCRIPTOR  mPpiListBootMode = {\r
   (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
   &gEfiPeiMasterBootModePpiGuid,\r
   NULL\r
 };\r
 \r
-EFI_PEI_PPI_DESCRIPTOR  mPpiListRecoveryBootMode = {\r
+CONST EFI_PEI_PPI_DESCRIPTOR  mPpiListRecoveryBootMode = {\r
   (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
   &gEfiPeiBootInRecoveryModePpiGuid,\r
   NULL\r