From 708e4e1098efcd683e87c7bb56cbfb45e69ec88a Mon Sep 17 00:00:00 2001 From: grehan Date: Wed, 20 Apr 2005 02:26:31 +0000 Subject: Get order right when initializing task file bus resources. ATA drives are now recognised when booting from the drive, as opposed to net-booting which the previous botched commit was tested with. --- sys/powerpc/powermac/ata_macio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/powerpc/powermac/ata_macio.c') diff --git a/sys/powerpc/powermac/ata_macio.c b/sys/powerpc/powermac/ata_macio.c index 1bf464e..5d91c3a 100644 --- a/sys/powerpc/powermac/ata_macio.c +++ b/sys/powerpc/powermac/ata_macio.c @@ -114,9 +114,9 @@ ata_macio_probe(device_t dev) ch->r_io[i].res = mem; ch->r_io[i].offset = i * ATA_MACIO_REGGAP; } + ch->r_io[ATA_CONTROL].res = mem; + ch->r_io[ATA_CONTROL].offset = ATA_MACIO_ALTOFFSET; ata_default_registers(ch); - ch->r_io[ATA_ALTSTAT].res = mem; - ch->r_io[ATA_ALTSTAT].offset = ATA_MACIO_ALTOFFSET; ch->unit = 0; ch->flags |= ATA_USE_16BIT; -- cgit v1.1