dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Feature Request
From: Christophe Avoinne (
Date: 2002-11-17

Have a look at the function ata_read_sectors in ata.c :

for (j=0; j < wordcount; j++)
    ((unsigned short*)buf)[j] = SWAB16(ATA_DATA);

As you can read here, each 16-bit word reading is byte swapped.

----- Original Message -----
From: "Greg Haerr" <>
To: <>
Sent: Sunday, November 17, 2002 2:39 AM
Subject: Re: Feature Request

> : But the fact that SH1 is a
> big-endian machine and IDE a little-endian data storage, it is not
> to swap bytes through the DMA process, so the CPU would need to swap them
> I'm not sure I follow you here. Are you saying that all disk
> sectors need to be byte-swapped after reading from disk?
> Regards,
> Greg

Page was last modified "Jan 10 2012" The Rockbox Crew