summaryrefslogtreecommitdiffstats
path: root/firmware
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 /firmware
parent05f1fc465402f235a775e529a7f5b732632da554 (diff)
downloadrockbox-dee17f71026c773957277d6e24d5c6719c821bb3.tar.gz
rockbox-dee17f71026c773957277d6e24d5c6719c821bb3.tar.bz2
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
Diffstat (limited to 'firmware')
-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 @@
#include "string.h"
#include "hwcompat.h"
+/* use plain C code in copy_read_sectors(), instead of tweaked assembler */
+#define PREFER_C /* mystery: assembler caused problems with some disks */
+
#define SECTOR_SIZE 512
#define ATA_DATA (*((volatile unsigned short*)0x06104100))
#define ATA_ERROR (*((volatile unsigned char*)0x06100101))