Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Feature Request
From: Christophe Avoinne (christophe.avoinne_at_laposte.net)
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" <greg_at_censoft.com>
To: <rockbox_at_cool.haxx.se>
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
possible
> 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
aaa