mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-20 03:01:19 +01:00
microblaze: Flush cache before jumping to kernel
There is used max cache size on system which doesn't define cache size. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
70524883b0
commit
9b4d905690
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue