Skip to content
Snippets Groups Projects
Commit 9b4d9056 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: Flush cache before jumping to kernel


There is used max cache size on system which doesn't define
cache size.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 70524883
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,14 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
(ulong) theKernel, rd_data_start, (ulong) of_flat_tree);
#endif
#ifdef XILINX_USE_DCACHE
#ifdef XILINX_DCACHE_BYTE_SIZE
flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
#else
#warning please rebuild BSPs and update configuration
flush_cache(0, 32768);
#endif
#endif
/*
* Linux Kernel Parameters (passing device tree):
* r5: pointer to command line
......
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