acrn-hypervisor/hypervisor/arch/x86
Junjie Mao 7b548e87db HV: cpu: convert hexadecimals used in bitops to unsigned
Per MISRA C, operands to bit-wise operations should have unsigned
types. However, C99 prioritizes to use signed integers for hexadecimal constants
without the 'U' suffixes, leading to tons of bit operations on signed integers.

This patch series add the 'U' suffixes to the constants which are used in bit
operations, and add the intended width of these integers when applicable
(i.e. the target value is at least 32-bit wide) to avoid functional differences
due to signed vs. unsigned extensions. The rule of thumb is:

    '0' for signed char/short/int
    '0U' for unsigned char/short/int
    '0L' for signed long (should be 64-bit)
    '0UL' for unsigned long (should be 64-bit)

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2018-06-21 13:12:39 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
guest HV: 'vlapic_set_local_intr()' code cleanup 2018-06-20 15:06:49 +08:00
Kconfig HV: correct loglevel definitions and default values 2018-06-20 13:23:46 +08:00
assign.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
cpu.c HV: cpu: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
cpu_primary.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_state_tbl.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
cpuid.c HV: cpu: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
ept.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
gdt.c HV: config: adapt to the generated config.h 2018-06-08 17:21:13 +08:00
idt.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
interrupt.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
intr_lapic.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
intr_main.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
ioapic.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
irq.c When guest frees vector, counts needs to be reset. "int" command 2018-06-21 11:29:53 +08:00
mmu.c HV:x86:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
mtrr.c hv: update EPT when guests change MTRRs 2018-06-08 12:06:15 +08:00
notify.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
pm.c hv: Add initialize pm.c 2018-06-14 13:41:45 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
timer.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
trampoline.S hv: Fix typo of trampline with trampoline 2018-06-12 15:54:16 +08:00
trusty.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
vmexit.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
vmx.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
vmx_asm.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vtd.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00