mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Harvest interrupt entropy off the floppy disk controller.
This commit is contained in:
parent
61e934f038
commit
3c36743e2d
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue