mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
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:
parent
c0441b0e5f
commit
e032cf1fe8
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue