]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.S
ArmPkg/DefaultExceptionHandlerLib: trim module name in backtrace output
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.S
index 29c4b5e8ad97d4ac5eb47c1df5f9fd6e41e481dd..f157925464484cf7c60b565007f3a8ab413f0d3d 100644 (file)
@@ -1,13 +1,13 @@
 #\r
-#  Copyright (c) 2012, 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
-#  which accompanies this distribution.  The full text of the license may be found at        \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
+#  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
 #\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
 #\r
 \r
 .align 2\r
 \r
 GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)\r
+GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId)\r
+GCC_ASM_EXPORT(ArmPlatformPeiBootAction)\r
+\r
+GCC_ASM_IMPORT(ArmReadMpidr)\r
 \r
 //UINTN\r
 //ArmPlatformIsPrimaryCore (\r
@@ -25,7 +29,19 @@ GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore)
 //  );\r
 ASM_PFX(ArmPlatformIsPrimaryCore):\r
   // BeagleBoard has a single core. We must always return 1.\r
-  mov  r0, #1\r
-  bx   lr\r
+  mov   r0, #1\r
+  bx    lr\r
+\r
+ASM_PFX(ArmPlatformPeiBootAction):\r
+  bx    lr\r
+\r
+//UINTN\r
+//ArmPlatformGetPrimaryCoreMpId (\r
+//  VOID\r
+//  );\r
+ASM_PFX(ArmPlatformGetPrimaryCoreMpId):\r
+  // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is\r
+  // always the MPIDR of the calling CPU.\r
+  b   ASM_PFX(ArmReadMpidr)\r
 \r
-ASM_FUNCTION_REMOVE_IF_UNREFERENCED \r
+ASM_FUNCTION_REMOVE_IF_UNREFERENCED\r