From: Wolfgang Denk Date: Sun, 22 Feb 2009 22:34:45 +0100 Subject: [U-Boot] [PATCH] bootm: Reduce the unnecessary memmove In-Reply-To: <49A177D8.1050702@acm.org> References: <499B50E0.8040501@samsung.com> <49A177D8.1050702@acm.org> Message-ID: <20090222213445.C7816832E43F@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 Dear Larry Johnson, In message <49A177D8.1050702@acm.org> you wrote: > > > Although load address and image start address are same address, > > bootm command always does memmove. > > That is unnecessary memmove and can be taken few milliseconds > > (about 500 msec to 1000 msec). > > If skip this memmove, we can reduce the boot time. ... > Sorry for the late reply, but would it be better to put the test of > source == destination into the memmove_wd() function? Yes, indeed. Can you please send a patch? 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 This was an amazing creation using small squares of compressed vegetable matter on which letters were made by means of small carbon particles from a stylus, giving an effect similar to the traditional word-processor screen. It seemed amazingly portable and I never once saw him have to change the batteries. - Terry Pratchett & Stephen Briggs, _The Discworld Companion_