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:
andi6 2024-02-02 11:01:00 +08:00 committed by Xiang Xiao
parent f955eda358
commit 2ed88f8813
1 changed files with 2 additions and 2 deletions

View File

@ -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