X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_nios2%2Fbootm.c;h=675bfac63a59d5475d160d887fa45b2dbb8618f8;hb=d611295032c30e6c533cb356005fa82ab7992824;hp=53fd5691ad7dd9c288d0b252fa061db0f99edd6b;hpb=cb5473205206c7f14cbb1e747f28ec75b48826e2;p=u-boot diff --git a/lib_nios2/bootm.c b/lib_nios2/bootm.c index 53fd5691ad..675bfac63a 100644 --- a/lib_nios2/bootm.c +++ b/lib_nios2/bootm.c @@ -24,6 +24,7 @@ #include #include #include +#include int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) { @@ -32,6 +33,10 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) return 1; + /* flushes data and instruction caches before calling the kernel */ + flush_dcache (0,CONFIG_SYS_DCACHE_SIZE); + flush_icache (0,CONFIG_SYS_ICACHE_SIZE); + /* For now we assume the Microtronix linux ... which only * needs to be called ;-) */