3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
7 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
9 * SPDX-License-Identifier: GPL-2.0+
19 #include <asm/system.h>
21 static void cache_flush(void);
23 int cleanup_before_linux (void)
26 * this function is called just before we call linux
27 * it prepares the processor for linux
29 * we turn off caches etc ...
32 disable_interrupts ();
35 /* turn off I/D-cache */
45 static void cache_flush (void)
49 asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i));