diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-28 10:46:28 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-09-28 10:46:28 +0000 |
commit | 0657689b29e4d07cc26619e8eaac9cafb5a6fed4 (patch) | |
tree | a7d365a471070053bd54c6862cf76e31a1e5660a /BeagleBoardPkg | |
parent | 695df8ba90dc01b6a4cd7d79e6d1a40e517186a6 (diff) | |
download | edk2-0657689b29e4d07cc26619e8eaac9cafb5a6fed4.zip edk2-0657689b29e4d07cc26619e8eaac9cafb5a6fed4.tar.gz edk2-0657689b29e4d07cc26619e8eaac9cafb5a6fed4.tar.bz2 |
ArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition()
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
Diffstat (limited to 'BeagleBoardPkg')
-rwxr-xr-x | BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c index 8f2ab55..ff4c556 100755 --- a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c +++ b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c @@ -124,3 +124,12 @@ ArmPlatformGetPlatformPpiList ( *PpiListSize = 0; *PpiList = NULL; } + +UINTN +ArmPlatformGetCorePosition ( + IN UINTN MpId + ) +{ + return 1; +} + |