Set up ACPI Interrupt data before creating the interrupt, to fix case where interrupt is being called as soon as it's being set up, before the data is set. Patch by tinus. Fixes bug 472

svn path=/trunk/; revision=13268
This commit is contained in:
Alex Ionescu 2005-01-25 05:38:01 +00:00
parent c0441b0e5f
commit e032cf1fe8

View file

@ -219,6 +219,11 @@ acpi_os_install_interrupt_handler(u32 irq, OSD_HANDLER handler, void *context)
&DIrql,
&Affinity);
AcpiIrqNumber = irq;
AcpiIrqHandler = handler;
AcpiIrqContext = context;
AcpiInterruptHandlerRegistered = TRUE;
Status = IoConnectInterrupt(
&AcpiInterrupt,
OslIsrStub,
@ -236,11 +241,6 @@ acpi_os_install_interrupt_handler(u32 irq, OSD_HANDLER handler, void *context)
return AE_ERROR;
}
AcpiIrqNumber = irq;
AcpiIrqHandler = handler;
AcpiIrqContext = context;
AcpiInterruptHandlerRegistered = TRUE;
return AE_OK;
}