Skip to content
Snippets Groups Projects
Commit 0a7691e8 authored by Renato Andreola's avatar Renato Andreola Committed by Scott McNutt
Browse files

Nios2: do_boom_linux(): kernel gunzip input data integrity problem due to

	missing cache flush.

    Added instruction and data caches flush.

Signed-off-by: default avatarScott McNutt <smcnutt@psyent.com>
parent de038253
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <common.h> #include <common.h>
#include <command.h> #include <command.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <asm/cache.h>
int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) 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) ...@@ -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)) if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
return 1; 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 /* For now we assume the Microtronix linux ... which only
* needs to be called ;-) * needs to be called ;-)
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment