[U-Boot] [PATCH 8/8] microblaze: Flush cache before jumping to kernel
monstr at monstr.eu
monstr at monstr.eu
Fri Apr 16 12:09:04 CEST 2010
From: Michal Simek <monstr at monstr.eu>
There is used max cache size on system which doesn't define
cache size.
Signed-off-by: Michal Simek <monstr at monstr.eu>
---
arch/microblaze/lib/bootm.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c
index 0c2c5e8..8892a7a 100644
--- a/arch/microblaze/lib/bootm.c
+++ b/arch/microblaze/lib/bootm.c
@@ -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
--
1.5.5.1
More information about the U-Boot
mailing list