[U-Boot] Unaligned data transfers?

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

Dear Tor Krill,
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
participants (2)
-
Tor Krill
-
Wolfgang Denk