]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Sep 2012 10:46:28 +0000 (10:46 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 28 Sep 2012 10:46:28 +0000 (10:46 +0000)
The MP ID Register is not enough to know the position of the core in the SoC.
We could have SoC with multi cluster of CPUs that do not contain the
same number of CPUs.
This function should return the position of the CPU in the SoC.

Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13770 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/Include/Library/ArmPlatformLib.h
BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c

index 3d7e1bc248370a93e664a00a840a893f9dd6eb9a..9f2de60a4a70a17f9d0c6e97179043aea02b860d 100644 (file)
@@ -41,6 +41,11 @@ typedef struct {
   UINT64                       NumberOfBytes;
 } ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR;
 
   UINT64                       NumberOfBytes;
 } ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR;
 
+UINTN
+ArmPlatformGetCorePosition (
+  IN UINTN MpId
+  );
+
 /**
   Return the current Boot Mode
 
 /**
   Return the current Boot Mode
 
index 8f2ab557be24268287f91eaaa055dfdbe3b1f5de..ff4c5568725bfc7d295dd05780ab7e16028acfce 100755 (executable)
@@ -124,3 +124,12 @@ ArmPlatformGetPlatformPpiList (
   *PpiListSize = 0;
   *PpiList = NULL;
 }
   *PpiListSize = 0;
   *PpiList = NULL;
 }
+
+UINTN
+ArmPlatformGetCorePosition (
+  IN UINTN MpId
+  )
+{
+  return 1;
+}
+