Skip to content

Commit 6793eb0

Browse files
JasonChenCJwenlingz
authored andcommitted
dm: fix assertion in pci_irq_reserve
atkbdc_init will call pci_irq_reserve to reserve irq 1 & 12, which need pci_irq_init be called first. Tracked-On: #1402 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
1 parent e0728f4 commit 6793eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devicemodel/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ vm_reset_vdevs(struct vmctx *ctx)
499499
pci_irq_deinit(ctx);
500500
ioapic_deinit();
501501

502+
pci_irq_init(ctx);
502503
atkbdc_init(ctx);
503504
vrtc_init(ctx);
504505
vpit_init(ctx);
505506

506507
ioapic_init(ctx);
507-
pci_irq_init(ctx);
508508
init_pci(ctx);
509509

510510
if (acpi) {

0 commit comments

Comments
 (0)