Re: [hatari-devel] Disk driver memory access checks |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Disk driver memory access checks
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Sat, 13 Oct 2018 18:53:46 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1539449626; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=49V9hltc3lBJwBcaNZ6BwOULroYDio8iyc+sbePdsv8=; b=E1cU8XbKtU7Pq286H1y7EcT8CciCqvZ0xt9zLjBRxSiK8+Nxqhe20CnK6swyUVrFzN a0Zc/KhnlIwhH5vfsqNd37cFCeZLYQ9v/RtKQ2C/ALUSAHCIuqDxN5FhB1hS+IhlnQD9 wrkOMwMvU/8llGSY5nCTuEkB1XhEcEJQV/vykVlTqAgCwFGtfGSYIgtJdTzbI2PE5xv7 MQaVw8GEpnytMI5zijdfnvZhIJvG/ZJrQCmfujLqXkii+bg2LBdCDZI4s8j6MC9cRJjy wP8LfUagZn3R2cF/h5ANZYIpriFh3Wgo32As8bUFjjYLwYjg1EXO+YW1DwvnGd8fgNmo GxBg==
> if transfer is made using DMA, does DMA generate bus error when trying
> to write to TOS ROM or is this not handled at all and "ignored"
> (contrary to what would happen if the cpu try to write to ROM)
>
> One could test this on real HW by just using xbios to read a floppy
> sector into ROM.
Assuming that the DMA chip generates a bus error in such a case, what's
the most similar approach in the case of nf_scsidrv? Just returning an
error code as a result of the ST memory check probably not.
Of course, I'm aware that this is a rather esoteric problem.