diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index c02e7fc9699f..74db22485ad8 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -56,13 +56,13 @@ #include #include +#include #include #include #include -#include #include +#include #include -#include #include #include #include @@ -1055,7 +1055,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; @@ -2664,8 +2665,7 @@ retrier(struct fdc_data *fdc) /* Trick diskerr */ bp->bio_dev = makedev(major(bp->bio_dev), (FDUNIT(minor(bp->bio_dev))<<3)|RAW_PART); - diskerr(bp, "hard error", - fdc->fd->skip / DEV_BSIZE, + diskerr(bp, "hard error", fdc->fd->skip / DEV_BSIZE, (struct disklabel *)NULL); bp->bio_dev = sav_bio_dev; if (fdc->flags & FDC_STAT_VALID) diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c index c02e7fc9699f..74db22485ad8 100644 --- a/sys/pc98/pc98/fd.c +++ b/sys/pc98/pc98/fd.c @@ -56,13 +56,13 @@ #include #include +#include #include #include #include -#include #include +#include #include -#include #include #include #include @@ -1055,7 +1055,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; @@ -2664,8 +2665,7 @@ retrier(struct fdc_data *fdc) /* Trick diskerr */ bp->bio_dev = makedev(major(bp->bio_dev), (FDUNIT(minor(bp->bio_dev))<<3)|RAW_PART); - diskerr(bp, "hard error", - fdc->fd->skip / DEV_BSIZE, + diskerr(bp, "hard error", fdc->fd->skip / DEV_BSIZE, (struct disklabel *)NULL); bp->bio_dev = sav_bio_dev; if (fdc->flags & FDC_STAT_VALID)