acrn-hypervisor/hypervisor/arch/x86/guest
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
..
guest.c HV:treewide: Add exec_vmread16 and exec_vmwrite16 functions 2018-07-18 12:31:42 +08:00
instr_emul_wrapper.c HV:INSTR_EMUL: Clean up CPU_reg_name 2018-07-19 14:08:03 +08:00
instr_emul_wrapper.h HV:INSTR_EMUL: Clean up CPU_reg_name 2018-07-19 14:08:03 +08:00
instr_emul.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
instr_emul.h HV: instr_emul: enforce unsignedness when possible 2018-07-05 13:14:07 +08:00
pm.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
ucode.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
vcpu.c HV:treewide:Update the type of return value and parameters of atomic operations 2018-07-19 14:39:47 +08:00
vioapic.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
vlapic_priv.h HV: vlapic: convert loop variables to unsigned 2018-07-13 10:02:44 +08:00
vlapic.c HV:treewide:Update the type of return value and parameters of atomic operations 2018-07-19 14:39:47 +08:00
vm.c HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
vmcall.c HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
vmsr.c HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
vpic.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00