acrn-hypervisor/hypervisor/arch/x86
Junjie Mao 3956ce1596 HV: io: spell out explicit narrowing of integers
The MMIO/PIO write APIs in io.h always take a uint32_t value but may uses it as
8, 16 or 32-bit integers. This patch converts the prototypes to align with their
functionality.

The pointer conversion and assignment are splitted to separate statements to
prevent static checkers from being confused about the underlying types.

v1 -> v2:

    * Change the prototype of mmio-related functions, instead of keeping the
      explicit conversions internal. The addresses are kept void* since in most
      cases hva (in void*) is passed.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-10 13:10:10 +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: No assignment inside while loop condition 2018-07-10 12:59:12 +08:00
Kconfig HV: correct loglevel definitions and default values 2018-06-20 13:23:46 +08:00
assign.c hv:fix "missing for discarded return value" for memcpy_s and strcpy_s 2018-07-09 09:22:37 +08:00
cpu.c HV: Assignment should not mix with operator 2018-07-10 11:56:36 +08:00
cpu_primary.S init: separate init function based on different stack 2018-06-25 17:29:11 +08:00
cpu_state_tbl.c HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpuid.c HV: Assignment should not mix with operator 2018-07-10 11:56:36 +08:00
ept.c HV:modified vm_description and vm_hw_info memebers' type 2018-07-10 12:42:22 +08:00
gdt.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
idt.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.c hv:fix "missing for discarded return value" for memset 2018-07-05 14:14:48 +08:00
ioapic.c HV: ioapic: clean up remaining integral-related violations 2018-07-10 10:28:03 +08:00
irq.c HV: Rename 'CPU_BOOT_ID' to 'BOOT_CPU_ID' 2018-07-10 11:51:12 +08:00
lapic.c HV:treewide: Clean up -1U or -1UL 2018-07-10 10:27:33 +08:00
mmu.c HV: Rename 'CPU_BOOT_ID' to 'BOOT_CPU_ID' 2018-07-10 11:51:12 +08:00
mtrr.c HV:Treewide:Update the type of vcpu id as uint16_t 2018-07-04 14:28:52 +08:00
notify.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
pm.c HV: io: spell out explicit narrowing of integers 2018-07-10 13:10:10 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
timer.c HV: Moving operators out from conditions 2018-07-09 13:10:34 +08:00
trampoline.S HV: rename functions in cpu.c 2018-07-05 12:45:44 +08:00
trusty.c HV:modified vm_description and vm_hw_info memebers' type 2018-07-10 12:42:22 +08:00
virq.c HV: Avoiding assignment opperation inside macro 2018-07-10 11:47:45 +08:00
vmexit.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
vmx.c HV: Avoiding the chained assignment 2018-07-10 11:49:50 +08:00
vmx_asm.S HV:CPU:Constant values replace with CPU MACRO 2018-07-09 09:24:56 +08:00
vtd.c HV: Moving operators out from conditions 2018-07-09 13:10:34 +08:00
wakeup.S HV:CPU:Constant values replace with CPU MACRO 2018-07-09 09:24:56 +08:00