]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
common/xyzModem.c: Do not use hard-coded address for debug buffer
authorAlexandru Gagniuc <alex.g@adaptrum.com>
Tue, 4 Apr 2017 17:42:31 +0000 (10:42 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:55 +0000 (09:26 -0400)
Under the plethora of #ifdefs, the xyzModem code hid this pearl:
static char *zm_out = (char *) 0x00380000;
This was only enabled when DEBUG is defined, so it's probably why it
went unnoticed for so long. No idea what platform had memory at that
exact location, but the this approach is extremely hacky.
Use a static buffer instead.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>

No differences found