[U-Boot] [PATCH] Flush cache after the OS image is loaded into the memory.

Wolfgang Denk wd at denx.de
Mon Sep 5 16:08:01 CEST 2011


Dear Kumar Gala,

In message <1314794723-25547-1-git-send-email-galak at kernel.crashing.org> you wrote:
> From: Diana CRACIUN <Diana.Craciun at freescale.com>
> 
> 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 <James.Yang at freescale.com>
> Signed-off-by: Diana CRACIUN <Diana.Craciun at freescale.com>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>  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.


More information about the U-Boot mailing list