From: Wolfgang Denk Date: Mon, 05 Sep 2011 16:08:01 +0200 Subject: [U-Boot] [PATCH] Flush cache after the OS image is loaded into the memory. In-Reply-To: <1314794723-25547-1-git-send-email-galak@kernel.crashing.org> References: <1314794723-25547-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20110905140801.40B23140ABDF@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 Kumar Gala, In message <1314794723-25547-1-git-send-email-galak@kernel.crashing.org> you wrote: > From: Diana CRACIUN > > Since we are loading an executable image into memory we need flush it > out of the cache to possible maintain coherence on CPUs with split > instruction and data caches. We do this for other executable image > loading command. > > On PowerPC once we do this we no longer need to explicitly flush the > dcache on multi-core systems in the BOOTM_STATE_OS_PREP phase. We now > treat the BOOTM_STATE_OS_PREP as a no-op to maintain backwards > compatibility with the bootm subcommand. > > Signed-off-by: James Yang > Signed-off-by: Diana CRACIUN > Signed-off-by: Kumar Gala > --- > arch/powerpc/lib/bootm.c | 20 ++++++-------------- > common/cmd_bootm.c | 3 +++ > 2 files changed, 9 insertions(+), 14 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 Children are natural mimics who act like their parents despite every effort to teach them good manners.