Fix clang compilation on aarch64: value size does not match register size. 97/12797/4
authorSirshak Das <sirshak.das@arm.com>
Wed, 30 May 2018 02:21:02 +0000 (21:21 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 30 May 2018 11:36:05 +0000 (11:36 +0000)
Fixes clang error: value size does not match register size specified
by the constraint and modifier

Change-Id: I83e69445eacd6570607334e086a8582addb5bdfc
Signed-off-by: Sirshak Das <sirshak.das@arm.com>
Reviewed-by: Brian Brooks <brian.brooks@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
src/vppinfra/time.c

index 1626ff4..e9a764b 100644 (file)
@@ -147,7 +147,7 @@ os_cpu_clock_frequency (void)
    * to each core which has registers for reading the current counter value
    * as well as the clock frequency. The system counter is not clocked at
    * the same frequency as the core. */
-  u32 hz;
+  u64 hz;
   asm volatile ("mrs %0, cntfrq_el0":"=r" (hz));
   return (f64) hz;
 #endif