mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 06:19:24 +00:00
hv:Unify the MACRO name for invalid interrupt pin
There are the following definitions in hypervisor, define IOAPIC_INVALID_PIN 0xffU define VPIC_INVALID_PIN 0xffU define PTDEV_INVALID_PIN 0xffU this patch unify them to: define INVALID_INTERRUPT_PIN 0xffffffffU Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
7725fe3b50
commit
1fc10d514c
@@ -49,7 +49,7 @@ static inline bool master_pic(const struct acrn_vpic *vpic, struct i8259_reg_sta
|
||||
static inline uint32_t vpic_get_highest_isrpin(const struct i8259_reg_state *i8259)
|
||||
{
|
||||
uint32_t bit, pin, i;
|
||||
uint32_t found_pin = VPIC_INVALID_PIN;
|
||||
uint32_t found_pin = INVALID_INTERRUPT_PIN;
|
||||
|
||||
pin = (i8259->lowprio + 1U) & 0x7U;
|
||||
|
||||
@@ -79,7 +79,7 @@ static inline uint32_t vpic_get_highest_irrpin(const struct i8259_reg_state *i82
|
||||
{
|
||||
uint8_t serviced;
|
||||
uint32_t bit, pin, tmp;
|
||||
uint32_t found_pin = VPIC_INVALID_PIN;
|
||||
uint32_t found_pin = INVALID_INTERRUPT_PIN;
|
||||
|
||||
/*
|
||||
* In 'Special Fully-Nested Mode' when an interrupt request from
|
||||
|
Reference in New Issue
Block a user