summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-02-15 08:44:02 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-02-15 08:44:02 +0000
commitdee17f71026c773957277d6e24d5c6719c821bb3 (patch)
treec0305e64298069a592b27de3855762ed908e1d87
parent05f1fc465402f235a775e529a7f5b732632da554 (diff)
downloadrockbox-dee17f71026c773957277d6e24d5c6719c821bb3.tar.gz
rockbox-dee17f71026c773957277d6e24d5c6719c821bb3.zip
Assembly code for copy_read_sectors() disabled: Tests with Trent showed that this is to blame for file system corruptions, even waitstates didn't fix it. No idea why, sorry...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4304 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/ata.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 284c599ef8..1bf5b5cf04 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -30,6 +30,9 @@
30#include "string.h" 30#include "string.h"
31#include "hwcompat.h" 31#include "hwcompat.h"
32 32
33/* use plain C code in copy_read_sectors(), instead of tweaked assembler */
34#define PREFER_C /* mystery: assembler caused problems with some disks */
35
33#define SECTOR_SIZE 512 36#define SECTOR_SIZE 512
34#define ATA_DATA (*((volatile unsigned short*)0x06104100)) 37#define ATA_DATA (*((volatile unsigned short*)0x06104100))
35#define ATA_ERROR (*((volatile unsigned char*)0x06100101)) 38#define ATA_ERROR (*((volatile unsigned char*)0x06100101))