mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Release IRQ allocated dynamically.
This commit is contained in:
parent
202a23238e
commit
bff5ef3ac9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49006
@ -26,7 +26,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id: cardd.c,v 1.33 1999/01/10 13:00:09 guido Exp $";
|
||||
"$Id: cardd.c,v 1.34 1999/02/05 16:00:17 kuriyama Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
@ -179,6 +179,9 @@ card_removed(struct slot *sp)
|
||||
sp->config = 0;
|
||||
/* release io */
|
||||
bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1);
|
||||
/* release irq */
|
||||
if (sp->irq)
|
||||
pool_irq[sp->irq] = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user