From 8ff5607e9d4fa0aaed3e0d0ffc63b8775a8116ca Mon Sep 17 00:00:00 2001 From: Ryan Harkin Date: Fri, 7 Sep 2012 18:39:08 +0100 Subject: VEA5: fix memory init The A5 BSP was initialising memory in the wrong place since the BSP was updated to support the latest submissions. Signed-off-by: Ryan Harkin --- .../Library/ArmVExpressLibCTA5s/CTA5sBoot.S | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'ArmPlatformPkg/ArmVExpressPkg') diff --git a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA5s/CTA5sBoot.S b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA5s/CTA5sBoot.S index 07d14a8bf..f90546ef2 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA5s/CTA5sBoot.S +++ b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA5s/CTA5sBoot.S @@ -84,6 +84,19 @@ ASM_PFX(ArmPlatformSecBootAction): **/ ASM_PFX(ArmPlatformInitializeBootMemory): + bx lr + +/** + Initialize the memory where the initial stacks will reside + + This memory can contain the initial stacks (Secure and Secure Monitor stacks). + In some platform, this region is already initialized and the implementation of this function can + do nothing. This memory can also represent the Secure RAM. + This function is called before the satck has been set up. Its implementation must ensure the stack + pointer is not used (probably required to use assembly language) + +**/ +ASM_PFX(ArmPlatformSecBootMemoryInit): mov r5, lr // @@ -123,16 +136,4 @@ ASM_PFX(ArmPlatformInitializeBootMemory): bx r5 -/** - Initialize the memory where the initial stacks will reside - - This memory can contain the initial stacks (Secure and Secure Monitor stacks). - In some platform, this region is already initialized and the implementation of this function can - do nothing. This memory can also represent the Secure RAM. - This function is called before the satck has been set up. Its implementation must ensure the stack - pointer is not used (probably required to use assembly language) - -**/ -ASM_PFX(ArmPlatformSecBootMemoryInit): - bx lr -- cgit v1.2.3