From 40c6e1d8e091fe8ac81f3907c035a121a6129019 Mon Sep 17 00:00:00 2001 From: Sirshak Das Date: Tue, 29 May 2018 21:21:02 -0500 Subject: Fix clang compilation on aarch64: value size does not match register size. Fixes clang error: value size does not match register size specified by the constraint and modifier Change-Id: I83e69445eacd6570607334e086a8582addb5bdfc Signed-off-by: Sirshak Das Reviewed-by: Brian Brooks Reviewed-by: Honnappa Nagarahalli --- src/vppinfra/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra/time.c') diff --git a/src/vppinfra/time.c b/src/vppinfra/time.c index 1626ff4ed38..e9a764bcd31 100644 --- a/src/vppinfra/time.c +++ b/src/vppinfra/time.c @@ -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 -- cgit 1.2.3-korg