|
Rockbox mail archiveSubject: Re: Feature RequestRe: Feature Request
From: Christophe Avoinne <christophe.avoinne_at_laposte.net>
Date: Sun, 17 Nov 2002 06:08:34 +0100 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 > Received on 2002-11-17 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |