]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoardHelper.asm
ArmPlatformPkg: Fix and Implement ArmPlatformGetPrimaryCoreMpId
[mirror_edk2.git] / BeagleBoardPkg / Library / BeagleBoardLib / BeagleBoardHelper.asm
index a05747717fba523c54367373d78286597abbc494..b850d9858ee17f6b62d0e41a3211dc17ac8a0f12 100644 (file)
@@ -20,6 +20,9 @@
 \r
   EXPORT    ArmPlatformPeiBootAction\r
   EXPORT    ArmPlatformIsPrimaryCore\r
+  EXPORT    ArmPlatformGetPrimaryCoreMpId\r
+\r
+  IMPORT       ArmReadMpidr\r
 \r
   AREA BeagleBoardHelper, CODE, READONLY\r
 \r
@@ -37,4 +40,14 @@ ArmPlatformPeiBootAction FUNCTION
   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