From: Wolfgang Denk Date: Fri, 09 May 2008 22:18:28 +0200 Subject: [U-Boot-Users] [PATCH] Fix readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating In-Reply-To: Your message of "Mon, 05 May 2008 10:22:53 CDT." Message-ID: <20080509201828.16AE124764@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message you wrote: > From: James Yang > > 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 > Signed-off-by: Kumar Gala > --- > common/main.c | 33 +++++++++++++++++++++++---------- > 1 files changed, 23 insertions(+), 10 deletions(-) Applied, thanks. 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 When choosing between two evils, I always like to take the one I've never tried before. -- Mae West, "Klondike Annie"