]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Library/ArmLib.h
ArmPkg/BdsLinuxFdt.c: Fix creation of 'cpu' and 'psci' device tree nodes.
[mirror_edk2.git] / ArmPkg / Include / Library / ArmLib.h
index 75f775536280b44248ba37acf263adf1f05ff842..5663844b1f1890a6fdb91231f4cec7bb0cd2c732 100644 (file)
@@ -116,6 +116,7 @@ typedef enum {
 #define ARM_CLUSTER_MASK      (0xFF << 8)\r
 #define GET_CORE_ID(MpId)     ((MpId) & ARM_CORE_MASK)\r
 #define GET_CLUSTER_ID(MpId)  (((MpId) & ARM_CLUSTER_MASK) >> 8)\r
+#define GET_MPID(ClusterId, CoreId)   (((ClusterId) << 8) | (CoreId))\r
 // Get the position of the core for the Stack Offset (4 Core per Cluster)\r
 //   Position = (ClusterId * 4) + CoreId\r
 #define GET_CORE_POS(MpId)    ((((MpId) & ARM_CLUSTER_MASK) >> 6) + ((MpId) & ARM_CORE_MASK))\r