ARM: i.MX external NAND boot: Add missing instruction cache invalidate
Before we jump to SDRAM where we just copied our code we have to invalidate the instruction cache. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
6e66ab7a53
commit
fbf502a9c2
|
@ -15,6 +15,7 @@
|
|||
#include <init.h>
|
||||
#include <io.h>
|
||||
#include <linux/mtd/nand.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/barebox-arm.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
|
@ -244,6 +245,8 @@ void __bare_init imx_nand_load_image(void *dest, int size, void __iomem *base,
|
|||
*/
|
||||
static __bare_init __naked void jump_sdram(unsigned long offset)
|
||||
{
|
||||
flush_icache();
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"sub lr, lr, %0;"
|
||||
"mov pc, lr;" : : "r"(offset)
|
||||
|
|
Loading…
Reference in New Issue