From 5a4c051a73c12952085f4e8a919a47744c91c2b8 Mon Sep 17 00:00:00 2001 From: Gyorgy Szombathelyi Date: Wed, 26 May 2021 00:05:04 +0200 Subject: [PATCH] IDE: use DMA filling the sector_buffer in writes --- hdd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdd.c b/hdd.c index 7d8926b..73170d9 100644 --- a/hdd.c +++ b/hdd.c @@ -489,7 +489,7 @@ static inline void ATA_WriteSectors(unsigned char* tfr, unsigned short sector, u SPI(0x00); SPI(0x00); SPI(0x00); - for (i = 0; i < 512; i++) sector_buffer[i] = SPI(0xFF); + spi_block_read(sector_buffer); DisableFpga(); switch(hdf[unit].type) {