]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix GetClusterId() calculation from MpId
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Nov 2011 23:32:45 +0000 (23:32 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Nov 2011 23:32:45 +0000 (23:32 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12627 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Include/Library/ArmLib.h

index 3ce687244fe69a95b7a1b11d2303676cea9fdef4..898b195d65d1a38acef5d944774e74b50bf84590 100644 (file)
@@ -81,7 +81,7 @@ typedef enum {
 
 #define IS_PRIMARY_CORE(MpId) (((MpId) & PcdGet32(PcdArmPrimaryCoreMask)) == PcdGet32(PcdArmPrimaryCore))
 #define GET_CORE_ID(MpId)     ((MpId) & 0x3)
-#define GET_CLUSTER_ID(MpId)  (((MpId) >> 6) & 0x3C)
+#define GET_CLUSTER_ID(MpId)  (((MpId) >> 8) & 0x3C)
 // Get the position of the core for the Stack Offset (4 Core per Cluster)
 //   Position = (ClusterId * 4) + CoreId
 #define GET_CORE_POS(MpId)    ((((MpId) >> 6) & 0x3C) + ((MpId) & 0x3))