From 0a3a1935b315586791d721254b59d4b7c2e94394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= 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 6551459eb771..9f4623b8cd40 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;