[U-Boot] MMC and buffer alignment question

Wolfgang Denk
2014-03-19T19:17:39Z

Dear Eric Nelson,

In message <5329DF5A.7090604@boundarydevices.com> you wrote:
>
> IMHO, this seems like overkill. Should we also prevent over-writing
> the stack or heap?

No. But we should not add any specific alignment requirements to
commands that transfer data to memory. If some driver has such needs
internally, then it should be handled there, but in a way that is
transparent to the user.

> Note that "sata read/write" and "usb read/write" have the same issues.

So these should be fixed, too. Patches welcome :-)

Best regards,

Wolfgang Denk

--
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
"UNIX was not designed to stop you from doing stupid things, because
that would also stop you from doing clever things." - Doug Gwyn