/** @file\r
*\r
-* Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
*\r
* This program and the accompanying materials\r
* are licensed and made available under the terms and conditions of the BSD License\r
UINTN StacksSize;\r
\r
// If ensure the FD is either part of the System Memory or totally outside of the System Memory (XIP)\r
- ASSERT (IS_XIP() || \r
+ ASSERT (IS_XIP() ||\r
((FixedPcdGet32 (PcdFdBaseAddress) >= FixedPcdGet64 (PcdSystemMemoryBase)) &&\r
((UINT32)(FixedPcdGet32 (PcdFdBaseAddress) + FixedPcdGet32 (PcdFdSize)) <= (UINT32)(FixedPcdGet64 (PcdSystemMemoryBase) + FixedPcdGet64 (PcdSystemMemorySize)))));\r
\r
// Initialize the Debug Agent for Source Level Debugging\r
InitializeDebugAgent (DEBUG_AGENT_INIT_POSTMEM_SEC, NULL, NULL);\r
SaveAndSetDebugTimerInterrupt (TRUE);\r
- \r
+\r
// Declare the PI/UEFI memory region\r
HobList = HobConstructor (\r
(VOID*)UefiMemoryBase,\r
\r
// Create the Stacks HOB (reserve the memory for all stacks)\r
if (ArmIsMpCore ()) {\r
- StacksSize = PcdGet32 (PcdCPUCorePrimaryStackSize) + (FixedPcdGet32(PcdClusterCount) * 4 * FixedPcdGet32(PcdCPUCoreSecondaryStackSize));\r
+ StacksSize = PcdGet32 (PcdCPUCorePrimaryStackSize) +\r
+ ((FixedPcdGet32 (PcdCoreCount) - 1) * FixedPcdGet32 (PcdCPUCoreSecondaryStackSize));\r
} else {\r
StacksSize = PcdGet32 (PcdCPUCorePrimaryStackSize);\r
}\r
)\r
{\r
UINT64 StartTimeStamp;\r
- \r
+\r
ASSERT(!ArmIsMpCore() || (PcdGet32 (PcdCoreCount) > 1));\r
\r
// Initialize the platform specific controllers\r
ArmCallWFE ();\r
}\r
}\r
- \r
+\r
// If not primary Jump to Secondary Main\r
if (ArmPlatformIsPrimaryCore (MpId)) {\r
// Goto primary Main.\r