1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Dont try to call detached interrupt routine.

This commit is contained in:
Søren Schmidt 2003-05-02 12:37:03 +00:00
parent 5ffb2c8bfd
commit 5909dab38c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114527

View File

@ -1155,9 +1155,10 @@ ata_promise_mio_intr(void *data)
irq_vector = ATA_INL(ctlr->r_io2, 0x0040);
for (unit = 0; unit < ctlr->channels; unit++) {
if (irq_vector & (1 << unit)) {
if ((ch = ctlr->interrupt[unit].argument))
if ((ch = ctlr->interrupt[unit].argument)) {
ctlr->interrupt[unit].function(ch);
ATA_IDX_OUTL(ch, ATA_BMDEVSPEC_0, 0x00000001);
ATA_IDX_OUTL(ch, ATA_BMDEVSPEC_0, 0x00000001);
}
}
}
}