Skip to contentSkip to conversation

Unaligned data transfers?

U-Boot Tor Krill 2 participants 2 messages Jun 4, 2010

lore
Share & tools
lore

Tor Krill

author
#0 lore raw

Hi,

I have a question regarding (disk) transfers. For example Sata read and write takes an unspecified address which very well could be an unaligned byte address.

Many DMA-controllers though require 16 or 32bit alignments for transfers.

Is it safe to assume that the address is correct or bail out with an error message if source/destinaton address isn't correctly aligned for the underlaying HW?

/Tor

#1 lore raw

Dear Tor Krill,

Quoted 4 lines · In message <1275655059.2450.78.camel@tor-desktop> you wrote:

Is it safe to assume that the address is correct or bail out with an error message if source/destinaton address isn't correctly aligned for the underlaying HW?

No, you are supposed to know what you are doing and provide addresses that are valid.

Like Perl, U-Boot gives you enough rope to hang yourself.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A quarrel is quickly settled when deserted by one party; there is  no
battle unless there be two.                                  - Seneca