Move a verbose printf before the first exit so we get a chance

to see what was there.
This commit is contained in:
Søren Schmidt 2004-04-19 18:29:43 +00:00
parent 4ed2b85d66
commit 9036df118c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128437

View file

@ -563,16 +563,16 @@ ata_generic_reset(struct ata_channel *ch)
}
}
if (bootverbose)
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
mask, ostat0, ostat1);
/* if nothing showed up there is no need to get any further */
/* SOS is that too strong?, we just might loose devices here XXX */
ch->devices = 0;
if (!mask)
return;
if (bootverbose)
ata_printf(ch, -1, "reset tp1 mask=%02x ostat0=%02x ostat1=%02x\n",
mask, ostat0, ostat1);
/* reset (both) devices on this channel */
ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_MASTER);
DELAY(10);