From e152fa146869124d63ec373bcf4cb05d525b2610 Mon Sep 17 00:00:00 2001 From: sos Date: Thu, 9 Feb 2006 20:53:32 +0000 Subject: [PATCH] Unbreak dump on legacy systems. Needs a more clean solution but that is more intrusive and can wait 'til after 6.1 --- sys/dev/ata/ata-pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 6551459eb77..9f4623b8cd4 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -443,7 +444,7 @@ ata_pci_status(device_t dev) { struct ata_channel *ch = device_get_softc(dev); - if (!ata_legacy(device_get_parent(dev)) && + if ((dumping || !ata_legacy(device_get_parent(dev))) && ch->dma && ((ch->flags & ATA_ALWAYS_DMASTAT) || (ch->dma->flags & ATA_DMA_ACTIVE))) { int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK; -- 2.45.2