Flush cache after the OS image is loaded into the memory.
authorDiana CRACIUN <Diana.Craciun@freescale.com>
Wed, 31 Aug 2011 02:45:23 +0000 (02:45 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 5 Sep 2011 14:07:44 +0000 (16:07 +0200)
commit99ffccbd3e5b7bc715e2eed6ea6d36f4020b56d8
treee7a052f7678d7d86acbbfd0bf4d70385d99477ff
parent019fd6d45b611193610e3366392c53a817c3cee2
Flush cache after the OS image is loaded into the memory.

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@freescale.com>
Signed-off-by: Diana CRACIUN <Diana.Craciun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/lib/bootm.c
common/cmd_bootm.c