Commit 35ef877f authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

Additional fix to readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating



Removed unneeded command line history initialization.  Also, the original
code would access the 'initted' variable before relocation to SDRAM
which resulted in erratic behavior since the bss is not initialized when
executing from flash.
Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
parent 22f371b6
......@@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer)
int rc;
static int initted = 0;
if (!initted) {
hist_init();
initted = 1;
}
/*
* History uses a global array which is not
* writable until after relocation to RAM.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment