From 8f3b36b2243e06e0a3c60f62ba17e881a190e4ee Mon Sep 17 00:00:00 2001 From: "Zheng, Gen" Date: Wed, 13 Jun 2018 16:04:46 +0800 Subject: [PATCH] HV: add volatile declaration to pointer parameter Add a volatile declaration to pointer parameter to avoid compiler to optimize it by using old value saved in register instead of accessing system memory. Signed-off-by: Zheng, Gen Acked-by: Eddie Dong --- hypervisor/include/lib/bits.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hypervisor/include/lib/bits.h b/hypervisor/include/lib/bits.h index d11dd30cf..c6c670796 100644 --- a/hypervisor/include/lib/bits.h +++ b/hypervisor/include/lib/bits.h @@ -145,7 +145,7 @@ static inline int clz64(unsigned long value) * (*addr) |= (1UL<