x64: add acrn ioapic init support
if we two step to set interrupt trigger and disable interrupt, acrn will inject #GP exception Signed-off-by: andi6 <andi6@xiaomi.com>
This commit is contained in:
parent
f955eda358
commit
2ed88f8813
|
@ -323,8 +323,8 @@ static void up_ioapic_init(void)
|
|||
|
||||
for (i = 0; i < maxintr; i++)
|
||||
{
|
||||
up_ioapic_pin_set_vector(i, TRIGGER_RISING_EDGE, IRQ0 + i);
|
||||
up_ioapic_mask_pin(i);
|
||||
up_ioapic_pin_set_vector(i, TRIGGER_RISING_EDGE |
|
||||
IOAPIC_PIN_DISABLE, IRQ0 + i);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue