FDC now once again correctly checks for DMA_OVER in FIFO-less mode, fixes #1705.
This commit is contained in:
@@ -1929,11 +1929,13 @@ fdc_data(fdc_t *fdc, uint8_t data, int last)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!fdc->fifo || (fdc->tfifo < 1)) {
|
if (!fdc->fifo || (fdc->tfifo < 1)) {
|
||||||
dma_channel_write(fdc->dma_ch, data);
|
|
||||||
|
|
||||||
fdc->data_ready = 1;
|
fdc->data_ready = 1;
|
||||||
fdc->stat = 0xd0;
|
fdc->stat = 0xd0;
|
||||||
|
|
||||||
|
fdc->fifobufpos = 0;
|
||||||
|
|
||||||
|
result = dma_channel_write(fdc->dma_ch, data);
|
||||||
|
|
||||||
if (result & DMA_OVER) {
|
if (result & DMA_OVER) {
|
||||||
fdc->tc = 1;
|
fdc->tc = 1;
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user