]> git.sur5r.net Git - u-boot/blobdiff - arch/microblaze/lib/bootm.c
ARM: implement relocation for ARM946
[u-boot] / arch / microblaze / lib / bootm.c
index fef563b48370ad2f32179117fab25bb138701739..8e2c6d89229fcf672ee8d3532015f75a947448de 100644 (file)
@@ -32,7 +32,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
+int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *images)
 {
        /* First parameter is mapped to $r5 for kernel boot args */
        void    (*theKernel) (char *, ulong, ulong);
@@ -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