acrn-hypervisor/hypervisor/include
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
..
arch/x86 irq: convert irq/vector numbers to unsigned 2018-06-12 10:21:58 +08:00
common Merge pull request #322 from dbkinder/api-spell 2018-06-12 07:45:21 +08:00
debug HV:treewide:C99-friendly per_cpu implementation change the per_cpu method 2018-06-05 17:09:00 +08:00
lib hv:replace unsigned long long with uint64_t 2018-06-12 10:21:19 +08:00
public Merge pull request #322 from dbkinder/api-spell 2018-06-12 07:45:21 +08:00
hv_debug.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hv_lib.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hypervisor.h HV: config: adapt to the generated config.h 2018-06-08 17:21:13 +08:00