acrn-hypervisor/hypervisor/include/arch/x86/guest
Junjie Mao 8c4a5987e3 irq: convert irq/vector numbers to unsigned
Currently irq and vector numbers are used inconsistently.

    * Sometimes vector or irq ids is used in bit operations, indicating
      that they should be unsigned (which is required by MISRA C).

    * At the same time we use -1 to indicate an unknown irq (in
      common_register_handler()) or unavailable irq (in
      alloc_irq()). Also (irq < 0) or (vector < 0) are used for error
      checking. These indicate that irq or vector ids should be signed.

This patch converts irq and vector numbers to unsigned 32-bit integers, and
replace the previous -1 with IRQ_INVALID or VECTOR_INVALID. The branch
conditions are updated accordingly.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-06-12 10:21:58 +08:00
..
guest.h hv: add memory allocation functions for trampoline code relocation 2018-06-11 12:15:28 +08:00
pm.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ucode.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vcpu.h irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
vioapic.h irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
vlapic.h irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
vm.h vm: remove current_vcpu from vm structure 2018-06-07 12:28:18 +08:00
vpic.h irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00