PMF: Fixup PMF constants
authordp-arm <dimitris.papastamos@arm.com>
Wed, 1 Feb 2017 11:38:02 +0000 (11:38 +0000)
committerdp-arm <dimitris.papastamos@arm.com>
Thu, 2 Feb 2017 13:48:11 +0000 (13:48 +0000)
`PMF_ARM_TIF_IMPL_ID` should be set to 0x41.  The code already left
shifts it by 24 bit positions so this was overflowing.

This fixes a build error with GCC 6.2 when
`ENABLE_RUNTIME_INSTRUMENTATION` is set.

Change-Id: I4c99d48ea7ce3d76e9edd1325b1979994db2c0fb
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
include/lib/pmf/pmf.h

index 7c33387517f0fc83b7f968958d8456c2a617c743..d5415f4c8476552b5d301c4ffb08304035922cd4 100644 (file)
 /*
  * Constants used for/by PMF services.
  */
-#define PMF_ARM_TIF_IMPL_ID    (0x41000000)
+#define PMF_ARM_TIF_IMPL_ID    0x41
 #define PMF_TID_SHIFT          0
 #define PMF_TID_MASK           (0xFF << PMF_TID_SHIFT)
 #define PMF_SVC_ID_SHIFT       10
 #define PMF_SVC_ID_MASK                (0x3F << PMF_SVC_ID_SHIFT)
 #define PMF_IMPL_ID_SHIFT      24
-#define PMF_IMPL_ID_MASK       (0xFF << PMF_IMPL_ID_SHIFT)
+#define PMF_IMPL_ID_MASK       (0xFFU << PMF_IMPL_ID_SHIFT)
 
 /*
  * Flags passed to PMF_REGISTER_SERVICE