]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm
ARM Packages: Replace tabs by spaces for indentation
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.asm
index 35115d014079ac0b3e25d31d48728820ead60c1a..86906c87bcc1c0196eada337cbdc126f93f72708 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
-//  http://opensource.org/licenses/bsd-license.php                                            \r
+//  Copyright (c) 2012-2013, ARM Limited. All rights reserved.\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
+//  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
 //\r
 //\r
 \r
 \r
   INCLUDE AsmMacroIoLib.inc\r
 \r
+  EXPORT    ArmPlatformPeiBootAction\r
   EXPORT    ArmPlatformIsPrimaryCore\r
+  EXPORT    ArmPlatformGetPrimaryCoreMpId\r
+\r
+  IMPORT    ArmReadMpidr\r
 \r
   AREA BeagleBoardHelper, CODE, READONLY\r
 \r
 //  );\r
 ArmPlatformIsPrimaryCore FUNCTION\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
   ENDFUNC\r
 \r
-  END\r
+ArmPlatformPeiBootAction FUNCTION\r
+  bx    lr\r
+  ENDFUNC\r
 \r
+//UINTN\r
+//ArmPlatformGetPrimaryCoreMpId (\r
+//  VOID\r
+//  );\r
+ArmPlatformGetPrimaryCoreMpId FUNCTION\r
+  // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is\r
+  // always the MPIDR of the calling CPU.\r
+  b     ArmReadMpidr\r
+  ENDFUNC\r
+\r
+  END\r