acrn-hypervisor/hypervisor/include/lib
Xiangyang Wu d28fff2b06 HV:treewide:Update the type of return value and parameters of atomic operations
There are many type conversions in the atomic
operations invoking reported by static analysis tool. These
type conversions voilate MISRA C.

To keep uniform naming convention, rename atomic operation
function names:
atomic_set_int/long --> atomic_set32/64;
atomic_clear_int/long --> atomic_clear32/64;
atomic_load --> atomic_load32;
atomic_store --> atomic_store32;
atomic_swap --> atomic_swap32;
atomic_readandclear --> atomic_readandclear32;
atomic_inc --> atomic_inc32;
atomic_dec --> atomic_dec32;
atomic_cmpxchg --> atomic_cmpxchg32;
atomic_xadd --> atomic_xadd32.
Update the type of atomic_load32/64, atomic_store32/64,
atomic_swap32/64, atomic_cmpxchg32/6.
Update related variables and callers.

Note: the type of return value and parameters of atomic_xadd32/64
still keep signed int/long since caller pass
negative variable to atomic_xadd32/64;

V1-->V2:
	Add comments for atomic_set/clear to differ from
	bitmap_set/clear.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Reviewed-by: Junjie.Mao <junjie.mao@intel.com>
2018-07-19 14:39:47 +08:00
..
crypto license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
atomic.h HV:treewide:Update the type of return value and parameters of atomic operations 2018-07-19 14:39:47 +08:00
bits.h HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
macros.h HV:MM:add 'U/UL' suffix for unsigned contant value 2018-07-11 09:23:03 +08:00
mem_mgt.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
rtl.h HV: timer: keep TSC frequency in KHz 2018-07-03 10:18:06 +08:00
spinlock.h HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
sprintf.h hv:replace unsigned long long with uint64_t 2018-06-12 10:21:19 +08:00
stdarg.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
types.h HV:lib:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
util.h HV: include: integral type cleanup 2018-07-10 13:10:10 +08:00