diff options
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 198f3936c1..5c1a19ea8e 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -380,7 +380,7 @@ static void copy_read_sectors(unsigned char* buf, int wordcount) | |||
380 | { /* loop compiles to 9 assembler instructions */ | 380 | { /* loop compiles to 9 assembler instructions */ |
381 | /* takes 14 clock cycles (2 pipeline stalls, 1 wait) */ | 381 | /* takes 14 clock cycles (2 pipeline stalls, 1 wait) */ |
382 | tmp = ATA_DATA; | 382 | tmp = ATA_DATA; |
383 | #ifdef SWAP_WORDS | 383 | #if defined(SWAP_WORDS) || defined(ROCKBOX_LITTLE_ENDIAN) |
384 | *buf++ = tmp & 0xff; /* I assume big endian */ | 384 | *buf++ = tmp & 0xff; /* I assume big endian */ |
385 | *buf++ = tmp >> 8; /* and don't use the SWAB16 macro */ | 385 | *buf++ = tmp >> 8; /* and don't use the SWAB16 macro */ |
386 | #else | 386 | #else |
@@ -691,7 +691,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount) | |||
691 | const unsigned char* bufend = buf + wordcount*2; | 691 | const unsigned char* bufend = buf + wordcount*2; |
692 | do | 692 | do |
693 | { | 693 | { |
694 | #ifdef SWAP_WORDS | 694 | #if defined(SWAP_WORDS) || defined(ROCKBOX_LITTLE_ENDIAN) |
695 | /* SH1: loop compiles to 9 assembler instructions */ | 695 | /* SH1: loop compiles to 9 assembler instructions */ |
696 | /* takes 13 clock cycles (2 pipeline stalls) */ | 696 | /* takes 13 clock cycles (2 pipeline stalls) */ |
697 | tmp = (unsigned short) *buf++; | 697 | tmp = (unsigned short) *buf++; |