Harvest interrupt entropy off the floppy disk controller.

This commit is contained in:
Mark Murray 2001-03-03 14:53:50 +00:00
parent 61e934f038
commit 3c36743e2d
2 changed files with 4 additions and 2 deletions

View file

@ -846,7 +846,8 @@ fdc_attach(device_t dev)
return error;
}
error = BUS_SETUP_INTR(device_get_parent(dev), dev, fdc->res_irq,
INTR_TYPE_BIO, fdc_intr, fdc, &fdc->fdc_intr);
INTR_TYPE_BIO | INTR_ENTROPY, fdc_intr, fdc,
&fdc->fdc_intr);
if (error) {
device_printf(dev, "cannot setup interrupt\n");
return error;

View file

@ -846,7 +846,8 @@ fdc_attach(device_t dev)
return error;
}
error = BUS_SETUP_INTR(device_get_parent(dev), dev, fdc->res_irq,
INTR_TYPE_BIO, fdc_intr, fdc, &fdc->fdc_intr);
INTR_TYPE_BIO | INTR_ENTROPY, fdc_intr, fdc,
&fdc->fdc_intr);
if (error) {
device_printf(dev, "cannot setup interrupt\n");
return error;