Re: [hatari-devel] Problem with ACSI/DMA: Command is not executed |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Problem with ACSI/DMA: Command is not executed
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 11 Oct 2013 22:07:46 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1381522066; l=536; s=domk; d=seimet.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=gp+dlPmH0S1uuYDOWBP9axBCWvk=; b=jGjpArennXrXajakgHfLmsGBxb5BX8brz7ScGJekZz4+VF1h3fJuOr0hLIwPHeOUSsm CF/S7SLwzp5YLptC9swzBY1osNVcSmLJfcXkRiofDRssLw83U5FvNCUt4VnM5zxUUEMm3 TuT2eiHRJeZ6nMhX8Aj+aPzFwr4syTBvayo=
> In the meantime I might have found another problem in hdc.c.
> HDC_Cmd_ReadCapacity() increments the DMA address while storing the 8
> result bytes but then it explicitly increments the addrese once again by 8:
>
> /* Update DMA counter */
> FDC_WriteDMAAddress(nDmaAddr + 8);
>
> I don't think this is correct but rather should be:
>
> FDC_WriteDMAAddress(nDmaAddr);
This is strange, HDC_Cmd_ModeSense also increments and additionally adds
16 bytes. I'm confused now whether this is right or wrong.
Take care
Uwe