forked from len0rd/rockbox
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
This commit is contained in:
parent
05f1fc4654
commit
dee17f7102
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,9 @@
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "hwcompat.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 SECTOR_SIZE 512
|
||||||
#define ATA_DATA (*((volatile unsigned short*)0x06104100))
|
#define ATA_DATA (*((volatile unsigned short*)0x06104100))
|
||||||
#define ATA_ERROR (*((volatile unsigned char*)0x06100101))
|
#define ATA_ERROR (*((volatile unsigned char*)0x06100101))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue