]> git.sur5r.net Git - u-boot/commit
Fix readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating
authorJames Yang <James.Yang@freescale.com>
Mon, 5 May 2008 15:22:53 +0000 (10:22 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 9 May 2008 20:18:15 +0000 (22:18 +0200)
commit597f6c26a18b389903a64692bacbf9a1ca69355b
treee7847a9cfe9e456930ca714f30956f898faa9419
parent726c0f1e5f108dccea052965123b95837d2bd402
Fix readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating

When CONFIG_CMDLINE_EDITING is enabled, readline_into_buffer() doesn't
work before relocating to RAM because command history is written into
a global array that is not writable before relocation.  This patch
defers to the no-editing and no-history code in readline_into_buffer()
if it is called before relocation.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
common/main.c