[U-Boot] [PATCH v7 4/4] EXYNOS: SMDK5250: Add MMC SPL support

Doug Anderson dianders at chromium.org
Wed Feb 8 23:35:28 UTC 2012

On Thu, Feb 2, 2012 at 1:21 PM, Mike Frysinger <vapier at gentoo.org> wrote:

> On Thursday 02 February 2012 04:11:27 Chander Kashyap wrote:
> > +int main(int argc, char **argv)
> > +{
> > ...
> > +     unsigned char buffer[BUFSIZE] = {0};
> this is an implicit memset() and from what i can see in the code, useless.
> you read() the entire buffer, so there's no need to initialize it.

Funny, I was just about to submit a patch to add this = {0} myself when I
found this message.  ;)  I would say that it (or a memset, whichever people
prefer) is a good idea so that this tool can be used to make a reasonable
SPL out of any source binary executable, even ones that are smaller than

Specifically, I assembled a bit of quick-and-dirty code for debugging (60
bytes) and wanted to convince the processor to load it as a BL2.  This tool
worked for the process, but it produced a file with some random data in it.

I wouldn't hold up committing this patch series for it, though...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/linaro-dev/attachments/20120208/3e1c4177/attachment-0001.html>

More information about the linaro-dev mailing list