Unbreak dump on legacy systems. Needs a more clean solution but that is

more intrusive and can wait 'til after 6.1
This commit is contained in:
Søren Schmidt 2006-02-09 20:53:32 +00:00
parent 55f63772e8
commit 0a3a1935b3

View File

@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/ata.h>
#include <sys/bus.h>
#include <sys/conf.h>
#include <sys/malloc.h>
#include <sys/sema.h>
#include <sys/taskqueue.h>
@ -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;