//\r
-// Copyright (c) 2012, ARM Limited. All rights reserved.\r
+// Copyright (c) 2012-2013, 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
#include <Library/ArmLib.h>\r
\r
.text \r
-.align 3\r
+.align 2\r
\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(ArmPlatformGetCorePosition)\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
\r
moveq r0, #1\r
movne r0, #0\r
bx lr\r
+\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
//\r
-// Copyright (c) 2012, ARM Limited. All rights reserved.\r
+// Copyright (c) 2012-2013, 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
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmPlatformGetCorePosition\r
EXPORT ArmPlatformIsPrimaryCore\r
\r
IMPORT _gPcd_FixedAtBuild_PcdArmPrimaryCore\r
IMPORT _gPcd_FixedAtBuild_PcdArmPrimaryCoreMask\r
\r
- PRESERVE8\r
- AREA ArmPlatformNullHelper, CODE, READONLY\r
+ AREA ArmRealViewEbHelper, CODE, READONLY\r
\r
//UINTN\r
//ArmPlatformGetCorePosition (\r
bx lr\r
ENDFUNC\r
\r
- END\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
\r
+ END\r
#/* @file\r
-# Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+# Copyright (c) 2011-2013, 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
MemoryAllocationLib\r
\r
[Sources.common]\r
+ ArmRealViewEbHelper.asm | RVCT\r
+ ArmRealViewEbHelper.S | GCC\r
ArmRealViewEb.c\r
ArmRealViewEbMem.c\r
ArmRealViewEbHelper.asm | RVCT\r
#include <ArmPlatform.h>\r
\r
.text \r
-.align 3\r
+.align 2\r
\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(ArmPlatformGetCorePosition)\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
+\r
//UINTN\r
//ArmPlatformGetCorePosition (\r
// IN UINTN MpId\r
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmPlatformGetCorePosition\r
EXPORT ArmPlatformIsPrimaryCore\r
\r
PRESERVE8\r
AREA CTA15A7Helper, CODE, READONLY\r
\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
+\r
//UINTN\r
//ArmPlatformGetCorePosition (\r
// IN UINTN MpId\r
#/* @file\r
-# Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+# Copyright (c) 2011-2013, 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
SerialPortLib\r
\r
[Sources.common]\r
+ CTA9x4Helper.asm | RVCT\r
+ CTA9x4Helper.S | GCC\r
CTA9x4.c\r
CTA9x4Mem.c\r
CTA9x4Helper.S | GCC\r
.text\r
.align 2\r
\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
-GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
GCC_ASM_EXPORT(ArmPlatformGetCorePosition)\r
\r
GCC_ASM_IMPORT(_gPcd_FixedAtBuild_PcdArmPrimaryCore)\r
and r0, r0, #ARM_CORE_MASK\r
bx lr\r
\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
+\r
ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmPlatformIsPrimaryCore\r
EXPORT ArmPlatformGetPrimaryCoreMpId\r
EXPORT ArmPlatformGetCorePosition\r
bx lr\r
ENDFUNC\r
\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
+\r
END\r
#include <Library/ArmLib.h>\r
#include <Library/PcdLib.h>\r
#include <AutoGen.h>\r
+#include "AsmMacroIoLib.inc"\r
\r
#include <Chipset/ArmCortexA9.h>\r
\r
.text\r
.align 2\r
\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(ArmGetCpuCountPerCluster)\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
GCC_ASM_IMPORT(_gPcd_FixedAtBuild_PcdArmPrimaryCore)\r
GCC_ASM_IMPORT(_gPcd_FixedAtBuild_PcdArmPrimaryCoreMask)\r
\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
+\r
# IN None\r
# OUT r0 = SCU Base Address\r
ASM_PFX(ArmGetScuBaseAddress):\r
# the Configuration BAR as a stack is not necessary setup. The SCU is at the\r
# offset 0x0000 from the Private Memory Region.\r
mrc p15, 4, r0, c15, c0, 0\r
- bx lr\r
+ bx lr\r
\r
//UINTN\r
//ArmPlatformGetPrimaryCoreMpId (\r
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmGetCpuCountPerCluster\r
EXPORT ArmPlatformIsPrimaryCore\r
EXPORT ArmPlatformGetPrimaryCoreMpId\r
\r
AREA RTSMHelper, CODE, READONLY\r
\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
+\r
// IN None\r
// OUT r0 = SCU Base Address\r
ArmGetScuBaseAddress FUNCTION\r
//\r
-// Copyright (c) 2012, ARM Limited. All rights reserved.\r
+// Copyright (c) 2012-2013, 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
#include <Library/ArmLib.h>\r
\r
.text \r
-.align 3\r
+.align 2\r
\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(ArmPlatformGetCorePosition)\r
GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
GCC_ASM_IMPORT(_gPcd_FixedAtBuild_PcdArmPrimaryCore)\r
GCC_ASM_IMPORT(_gPcd_FixedAtBuild_PcdArmPrimaryCoreMask)\r
\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
+\r
//UINTN\r
//ArmPlatformGetCorePosition (\r
// IN UINTN MpId\r
//\r
-// Copyright (c) 2012, ARM Limited. All rights reserved.\r
+// Copyright (c) 2012-2013, 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
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmPlatformGetCorePosition\r
EXPORT ArmPlatformGetPrimaryCoreMpId\r
EXPORT ArmPlatformIsPrimaryCore\r
PRESERVE8\r
AREA ArmPlatformNullHelper, CODE, READONLY\r
\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
+\r
//UINTN\r
//ArmPlatformGetCorePosition (\r
// IN UINTN MpId\r
GCC_ASM_IMPORT(ArmPlatformGetCorePosition)\r
GCC_ASM_IMPORT(ArmPlatformIsPrimaryCore)\r
GCC_ASM_IMPORT(ArmReadMpidr)\r
+GCC_ASM_IMPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_EXPORT(_ModuleEntryPoint)\r
\r
StartupAddr: .word CEntryPoint\r
\r
ASM_PFX(_ModuleEntryPoint):\r
+ // Do early platform specific actions\r
+ bl ASM_PFX(ArmPlatformPeiBootAction)\r
+\r
// Identify CPU ID\r
bl ASM_PFX(ArmReadMpidr)\r
// Keep a copy of the MpId register value\r
IMPORT ArmPlatformGetCorePosition\r
IMPORT ArmPlatformIsPrimaryCore\r
IMPORT ArmReadMpidr\r
+ IMPORT ArmPlatformPeiBootAction\r
EXPORT _ModuleEntryPoint\r
\r
PRESERVE8\r
StartupAddr DCD CEntryPoint\r
\r
_ModuleEntryPoint\r
+ // Do early platform specific actions\r
+ bl ArmPlatformPeiBootAction\r
+\r
// Identify CPU ID\r
bl ArmReadMpidr\r
// Keep a copy of the MpId register value\r
GCC_ASM_IMPORT(CEntryPoint)\r
GCC_ASM_IMPORT(ArmPlatformIsPrimaryCore)\r
GCC_ASM_IMPORT(ArmReadMpidr)\r
+GCC_ASM_IMPORT(ArmPlatformPeiBootAction)\r
GCC_ASM_IMPORT(ArmPlatformStackSet)\r
GCC_ASM_EXPORT(_ModuleEntryPoint)\r
\r
\r
\r
ASM_PFX(_ModuleEntryPoint):\r
+ // Do early platform specific actions\r
+ bl ASM_PFX(ArmPlatformPeiBootAction)\r
+\r
// Get ID of this CPU in Multicore system\r
bl ASM_PFX(ArmReadMpidr)\r
// Keep a copy of the MpId register value\r
IMPORT CEntryPoint\r
IMPORT ArmPlatformIsPrimaryCore\r
IMPORT ArmReadMpidr\r
+ IMPORT ArmPlatformPeiBootAction\r
IMPORT ArmPlatformStackSet\r
\r
EXPORT _ModuleEntryPoint\r
StartupAddr DCD CEntryPoint\r
\r
_ModuleEntryPoint\r
+ // Do early platform specific actions\r
+ bl ArmPlatformPeiBootAction\r
+\r
// Get ID of this CPU in Multicore system\r
bl ArmReadMpidr\r
// Keep a copy of the MpId register value\r
#\r
-# Copyright (c) 2012, ARM Limited. All rights reserved.\r
+# Copyright (c) 2012-2013, 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
.align 2\r
\r
GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
\r
//UINTN\r
//ArmPlatformIsPrimaryCore (\r
mov r0, #1\r
bx lr\r
\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+ bx lr\r
+\r
ASM_FUNCTION_REMOVE_IF_UNREFERENCED \r
//\r
-// Copyright (c) 2012, ARM Limited. All rights reserved.\r
+// Copyright (c) 2012-2013, 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
\r
INCLUDE AsmMacroIoLib.inc\r
\r
+ EXPORT ArmPlatformPeiBootAction\r
EXPORT ArmPlatformIsPrimaryCore\r
\r
AREA BeagleBoardHelper, CODE, READONLY\r
bx lr\r
ENDFUNC\r
\r
- END\r
+ArmPlatformPeiBootAction FUNCTION\r
+ bx lr\r
+ ENDFUNC\r
\r
+ END\r
#/* @file\r
-# Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
+# Copyright (c) 2011-2013, 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
[LibraryClasses]\r
IoLib\r
ArmLib\r
-# OmapLib\r
MemoryAllocationLib\r
\r
[Sources.common]\r
+ BeagleBoardHelper.asm | RVCT\r
+ BeagleBoardHelper.S | GCC\r
BeagleBoard.c\r
BeagleBoardMem.c\r
PadConfiguration.c\r
BeagleBoardHelper.S | GCC\r
BeagleBoardHelper.asm | RVCT\r
\r
-[Protocols]\r
-\r
[FeaturePcd]\r
gEmbeddedTokenSpaceGuid.PcdCacheEnable\r
\r