ArmPlatformPkg/PrePeiCore: remove global variable allocation from lowlevel init
Now that we dropped all ArmPlatformGlobalVariableLib dependencies, there is no longer a need to allocate and clear out the global variable region in the PrePeiCore init code. So remove it. 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@18994 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
abiesheuvel
parent
6ef6afac50
commit
3707dee3da
@@ -17,23 +17,15 @@
|
||||
#include <Library/DebugAgentLib.h>
|
||||
#include <Library/ArmLib.h>
|
||||
|
||||
#include <Ppi/ArmGlobalVariable.h>
|
||||
|
||||
#include "PrePeiCore.h"
|
||||
|
||||
CONST EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI mTemporaryRamSupportPpi = { PrePeiCoreTemporaryRamSupport };
|
||||
CONST ARM_GLOBAL_VARIABLE_PPI mGlobalVariablePpi = { PrePeiCoreGetGlobalVariableMemory };
|
||||
|
||||
CONST EFI_PEI_PPI_DESCRIPTOR gCommonPpiTable[] = {
|
||||
{
|
||||
EFI_PEI_PPI_DESCRIPTOR_PPI,
|
||||
&gEfiTemporaryRamSupportPpiGuid,
|
||||
(VOID *) &mTemporaryRamSupportPpi
|
||||
},
|
||||
{
|
||||
EFI_PEI_PPI_DESCRIPTOR_PPI,
|
||||
&gArmGlobalVariablePpiGuid,
|
||||
(VOID *) &mGlobalVariablePpi
|
||||
}
|
||||
};
|
||||
|
||||
@@ -146,18 +138,3 @@ PrePeiCoreTemporaryRamSupport (
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
PrePeiCoreGetGlobalVariableMemory (
|
||||
OUT EFI_PHYSICAL_ADDRESS *GlobalVariableBase
|
||||
)
|
||||
{
|
||||
ASSERT (GlobalVariableBase != NULL);
|
||||
|
||||
*GlobalVariableBase = (UINTN)PcdGet64 (PcdCPUCoresStackBase) +
|
||||
(UINTN)PcdGet32 (PcdCPUCorePrimaryStackSize) -
|
||||
(UINTN)PcdGet32 (PcdPeiGlobalVariableSize);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user