mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-02 20:35:32 +00:00
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> |
||
---|---|---|
.. | ||
arch/x86 | ||
common | ||
debug | ||
lib | ||
public | ||
hv_debug.h | ||
hv_lib.h | ||
hypervisor.h |