From: oliviermartin Date: Fri, 28 Sep 2012 10:46:28 +0000 (+0000) Subject: ArmPlatformPkg/ArmPlatformLib.h: Introduced ArmPlatformGetCorePosition() X-Git-Tag: edk2-stable201903~13011 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=0657689b29e4d07cc26619e8eaac9cafb5a6fed4 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 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13770 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h index 3d7e1bc248..9f2de60a4a 100644 --- a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h +++ b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h @@ -41,6 +41,11 @@ typedef struct { UINT64 NumberOfBytes; } ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR; +UINTN +ArmPlatformGetCorePosition ( + IN UINTN MpId + ); + /** Return the current Boot Mode diff --git a/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c b/BeagleBoardPkg/Library/BeagleBoardLib/BeagleBoard.c index 8f2ab557be..ff4c556872 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; +} +