ArmPlatformPkg/PlatformPeim: constify EFI_PEI_PPI_DESCRIPTOR globals

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
This commit is contained in:
Ard Biesheuvel 2015-08-07 17:27:33 +00:00 committed by abiesheuvel
parent 0c7cc4fb92
commit 64748d26a6
1 changed files with 2 additions and 2 deletions

View File

@ -50,13 +50,13 @@ PlatformPeim (
// //
// Module globals // Module globals
// //
EFI_PEI_PPI_DESCRIPTOR mPpiListBootMode = { CONST EFI_PEI_PPI_DESCRIPTOR mPpiListBootMode = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST), (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiPeiMasterBootModePpiGuid, &gEfiPeiMasterBootModePpiGuid,
NULL NULL
}; };
EFI_PEI_PPI_DESCRIPTOR mPpiListRecoveryBootMode = { CONST EFI_PEI_PPI_DESCRIPTOR mPpiListRecoveryBootMode = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST), (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiPeiBootInRecoveryModePpiGuid, &gEfiPeiBootInRecoveryModePpiGuid,
NULL NULL