Since the System Memory initialization has been moved inside ArmPlatformSecLib
on some platforms, the use of this library could crash if the firmware engineer
forgot to initialize the DRAM.
This library 'patches' the DRAM to add an infinite loop.
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13262
6f19259b-4bc3-4df7-8a09-
765794883524
UINTN CharCount;\r
\r
if (FeaturePcdGet (PcdStandalone) == FALSE) {\r
+\r
+ //\r
+ // Warning: This code assumes the DRAM has already been initialized by ArmPlatformSecLib\r
+ //\r
+\r
if (IS_PRIMARY_CORE(MpId)) {\r
UINTN* StartAddress = (UINTN*)PcdGet32(PcdFvBaseAddress);\r
\r
*JumpAddress = (UINTN)NonSecureWaitForFirmware;\r
}\r
} else if (FeaturePcdGet (PcdSystemMemoryInitializeInSec)) {\r
+\r
+ //\r
+ // Warning: This code assumes the DRAM has already been initialized by ArmPlatformSecLib\r
+ //\r
+\r
if (IS_PRIMARY_CORE(MpId)) {\r
// Signal the secondary cores they can jump to PEI phase\r
ArmGicSendSgiTo (PcdGet32(PcdGicDistributorBase), ARM_GIC_ICDSGIR_FILTER_EVERYONEELSE, 0x0E, PcdGet32 (PcdGicSgiIntId));\r